Skip to content

bloqade.squin.stdlib.broadcast.noise.two_qubit_pauli_channel

← Module overview

functiontwo_qubit_pauli_channelsource

bloqade.squin.stdlib.broadcast.noise.two_qubit_pauli_channel

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

Apply a Pauli product error with weighted probabilities to the set of control and target qubits.

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

For each pair of qubits from the controls and targets lists, 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]]
controlsilist.IList[Qubit, N]
targetsilist.IList[Qubit, N]
source