Skip to content

bloqade.qasm2.noise.cz_pauli_channel

← Module overview

functioncz_pauli_channelsource

bloqade.qasm2.noise.cz_pauli_channel

Signature
def cz_pauli_channel(ctrls: ilist.IList[Qubit, Any] | list, qargs: ilist.IList[Qubit, Any] | list, *, px_ctrl: float, py_ctrl: float, pz_ctrl: float, px_qarg: float, py_qarg: float, pz_qarg: float, paired: bool) -> None

Insert noise for a CZ gate with a Pauli channel on qubits.

Parameters

NameTypeDescription
ctrlsilist.IList[Qubit, Any] | listList of control qubits.
qargsilist.IList[Qubit, Any] | list
px_ctrlfloatProbability of X error on control qubits.
py_ctrlfloatProbability of Y error on control qubits.
pz_ctrlfloatProbability of Z error on control qubits.
px_qargfloatProbability of X error on target qubits.
py_qargfloatProbability of Y error on target qubits.
pz_qargfloatProbability of Z error on target qubits.
pairedboolIf True, the noise is applied to both control and target qubits are not lost otherwise skip this error. If False Apply the noise on the whatever qubit is not lost.
source