qilisdk.noise.readout_assignment

Classes

ReadoutAssignment

Classical readout assignment error model for measurement outcomes.

Module Contents

class ReadoutAssignment(*, p01: float, p10: float)[source]

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

Classical readout assignment error model for measurement outcomes.

Parameters:
  • p01 (float) – Probability to report “1” when the state is “0”.

  • p10 (float) – Probability to report “0” when the state is “1”.

Raises:

ValueError – If any probability is outside [0, 1].

property p01: float[source]

Return the probability of reporting “1” for a “0” state.

Returns:

The p01 probability.

property p10: float[source]

Return the probability of reporting “0” for a “1” state.

Returns:

The p10 probability.

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

Return the attachment scopes supported by this perturbation type.

Returns:

The set of scopes where this perturbation can be attached.