Program.define_noisy_readout

Program.define_noisy_readout(qubit, p00, p11)[source]

For this program define a classical bit flip readout error channel parametrized by p00 and p11. This models the effect of thermal noise that corrupts the readout signal after it has interrogated the qubit.

Parameters:
  • qubit (Union[int, QubitPlaceholder]) – The qubit with noisy readout.
  • p00 (float) – The probability of obtaining the measurement result 0 given that the qubit is in state 0.
  • p11 (float) – The probability of obtaining the measurement result 1 given that the qubit is in state 1.
Return type:

Program

Returns:

The Program with an appended READOUT-POVM Pragma.