bloqade.squin.stdlib.broadcast.noise.single_qubit_pauli_channel
← Module overview
function
source
functionsingle_qubit_pauli_channel¶source
bloqade.squin.stdlib.broadcast.noise.single_qubit_pauli_channel
Signature
def single_qubit_pauli_channel(px: float, py: float, pz: float, qubits: ilist.IList[Qubit, Any]) -> NoneApply a Pauli error channel with weighted px, py, pz. No error is applied with a probability
1 - (px + py + pz).
This randomly selects one of the three Pauli operators X, Y, Z, weighted with the given probabilities in that order.
Parameters
| Name | Type | Description |
|---|---|---|
px | float | |
py | float | |
pz | float | |
qubits | ilist.IList[Qubit, Any] | The list of qubits to which the noise channel is applied. |