qilisdk.noise.readout_assignment

Classes

ReadoutAssignment

Classical readout assignment error model for measurement outcomes.

Module Contents

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

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

Classical readout assignment error model for measurement outcomes.

Paràmetres:
  • p01 (float) – Probability to report «1» when the state is |0>.

  • p10 (float) – Probability to report «0» when the state is |1>.

Llença:

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

property p01: float[font]

Return the probability of reporting «1» for a |0> state.

Retorna:

The p01 probability.

property p10: float[font]

Return the probability of reporting «0» for a |1> state.

Retorna:

The p10 probability.

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

Return the attachment scopes supported by this perturbation type.

Retorna:

The set of scopes where this perturbation can be attached.