bloqade.squin.stdlib.simple.noise.single_qubit_pauli_channel
← Module overview
function
source
functionsingle_qubit_pauli_channel¶source
bloqade.squin.stdlib.simple.noise.single_qubit_pauli_channel
Signature
def single_qubit_pauli_channel(px: float, py: float, pz: float, qubit: Qubit) -> 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 | |
qubit | Qubit | The qubit to which the noise channel is applied. |