qilisdk.noise.protocols

Classes

AttachmentScope

Scope describing where a noise or perturbation can be attached.

HasAllowedScopes

Protocol for types that declare their allowed attachment scopes.

SupportsTimeDerivedKraus

Protocol for types that produce duration-dependent Kraus channels.

SupportsStaticKraus

Protocol for types that expose a fixed Kraus channel.

SupportsStaticLindblad

Protocol for types that expose a fixed Lindblad generator.

SupportsTimeDerivedLindblad

Protocol for types that expose a Lindblad generator derived from time.

Module Contents

class AttachmentScope[fuente]

Bases: str, enum.Enum

Scope describing where a noise or perturbation can be attached.

GLOBAL[fuente]

Applies to all operations or parameters.

PER_QUBIT[fuente]

Applies only to a specific qubit.

PER_GATE_TYPE[fuente]

Applies only to a specific gate type.

Initialize self. See help(type(self)) for accurate signature.

GLOBAL = 'global'[fuente]
PER_QUBIT = 'per_qubit'[fuente]
PER_GATE_TYPE = 'per_gate_type'[fuente]
PER_GATE_TYPE_PER_QUBIT = 'per_gate_type_per_qubit'[fuente]
class HasAllowedScopes[fuente]

Bases: Protocol

Protocol for types that declare their allowed attachment scopes.

classmethod allowed_scopes() frozenset[AttachmentScope][fuente]

Return the attachment scopes supported by the type.

Devuelve:

The set of scopes where the type can be attached.

class SupportsTimeDerivedKraus[fuente]

Bases: Protocol

Protocol for types that produce duration-dependent Kraus channels.

as_kraus_from_duration(*, duration: float) qilisdk.noise.representations.KrausChannel[fuente]

Return a Kraus channel derived for a specific duration.

Parámetros:

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

Devuelve:

The Kraus channel for the given duration.

class SupportsStaticKraus[fuente]

Bases: Protocol

Protocol for types that expose a fixed Kraus channel.

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

Return the static Kraus channel for this noise.

Devuelve:

The Kraus channel representation.

class SupportsStaticLindblad[fuente]

Bases: Protocol

Protocol for types that expose a fixed Lindblad generator.

as_lindblad() qilisdk.noise.representations.LindbladGenerator[fuente]

Return the Lindblad generator for this noise.

Devuelve:

The Lindblad generator representation.

class SupportsTimeDerivedLindblad[fuente]

Bases: Protocol

Protocol for types that expose a Lindblad generator derived from time.

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.