Skip to content

bloqade.squin.stdlib.simple.noise.single_qubit_pauli_channel

← Module overview

functionsingle_qubit_pauli_channelsource

bloqade.squin.stdlib.simple.noise.single_qubit_pauli_channel

Signature
def single_qubit_pauli_channel(px: float, py: float, pz: float, qubit: Qubit) -> 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
qubitQubitThe qubit to which the noise channel is applied.
source