qilisdk.noise.pauli_channel

Classes

PauliChannel

General single-qubit Pauli channel.

Module Contents

class PauliChannel(*, pX: float = 0.0, pY: float = 0.0, pZ: float = 0.0)[fuente]

Bases: qilisdk.noise.noise.Noise, qilisdk.noise.protocols.SupportsStaticKraus, qilisdk.noise.protocols.SupportsTimeDerivedLindblad, qilisdk.noise.protocols.HasAllowedScopes

General single-qubit Pauli channel.

Channel:

E(rho) = pI * rho + pX * X rho X + pY * Y rho Y + pZ * Z rho Z where pI = 1 - (pX + pY + pZ).

Parámetros:
  • pX (float) – Probability of X error.

  • pY (float) – Probability of Y error.

  • pZ (float) – Probability of Z error.

Muestra:

ValueError – If any probability is outside [0, 1] or pX + pY + pZ > 1.

property pX: float[fuente]

Return the probability of an X error.

Devuelve:

Probability for the X Pauli error.

Tipo del valor devuelto:

float

property pY: float[fuente]

Return the probability of a Y error.

Devuelve:

Probability for the Y Pauli error.

Tipo del valor devuelto:

float

property pZ: float[fuente]

Return the probability of a Z error.

Devuelve:

Probability for the Z Pauli error.

Tipo del valor devuelto:

float

as_kraus() qilisdk.noise.representations.KrausChannel[fuente]

Return the static Kraus channel for this noise.

Devuelve:

The Kraus channel representation.

as_lindblad_from_duration(*, duration: float) qilisdk.noise.representations.LindbladGenerator[fuente]

Return the Lindblad generator for this noise.

Parámetros:

duration (float) – Duration over which the noise acts.

Devuelve:

The Lindblad generator representation.

classmethod allowed_scopes() frozenset[qilisdk.noise.protocols.AttachmentScope][fuente]

Return the attachment scopes supported by this noise type.

Devuelve:

The set of scopes where this noise can be attached.