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