bloqade.squin.stdlib.broadcast.noise.two_qubit_pauli_channel
← Module overview
function
source
functiontwo_qubit_pauli_channel¶source
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]) -> NoneApply 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
| Name | Type | Description |
|---|---|---|
probabilities | ilist.IList[float, Literal[15]] | |
controls | ilist.IList[Qubit, N] | |
targets | ilist.IList[Qubit, N] |