bloqade.qasm2.noise.cz_pauli_channel
← Module overview
function
source
functioncz_pauli_channel¶source
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) -> NoneInsert noise for a CZ gate with a Pauli channel on qubits.
Parameters
| Name | Type | Description |
|---|---|---|
ctrls | ilist.IList[Qubit, Any] | list | List of control qubits. |
qargs | ilist.IList[Qubit, Any] | list | |
px_ctrl | float | Probability of X error on control qubits. |
py_ctrl | float | Probability of Y error on control qubits. |
pz_ctrl | float | Probability of Z error on control qubits. |
px_qarg | float | Probability of X error on target qubits. |
py_qarg | float | Probability of Y error on target qubits. |
pz_qarg | float | Probability of Z error on target qubits. |
paired | bool | If 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. |