Skip to content

bloqade.squin.stdlib.broadcast.noise.single_qubit_pauli_channel

← Module overview

functionsingle_qubit_pauli_channelsource

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]) -> None

Apply 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

NameTypeDescription
pxfloat
pyfloat
pzfloat
qubitsilist.IList[Qubit, Any]The list of qubits to which the noise channel is applied.
source