Skip to content

bloqade.squin.stdlib.simple.noise.two_qubit_pauli_channel

← Module overview

functiontwo_qubit_pauli_channelsource

bloqade.squin.stdlib.simple.noise.two_qubit_pauli_channel

Signature
def two_qubit_pauli_channel(probabilities: ilist.IList[float, Literal[15]], control: Qubit, target: Qubit) -> None

Apply a Pauli product error with weighted probabilities to the pair of qubits.

No error is applied with the probability 1 - sum(probabilities).

This will randomly select one of the pauli products

{IX, IY, IZ, XI, XX, XY, XZ, YI, YX, YY, YZ, ZI, ZX, ZY, ZZ}

weighted with the corresponding list of probabilities.

NOTE: The order of the given probabilities must match the order of the list of Pauli products above!

Parameters

NameTypeDescription
probabilitiesilist.IList[float, Literal[15]]
controlQubit
targetQubit
source