bloqade.squin.stdlib.broadcast.noise.depolarize2
← Module overview
function
source
functiondepolarize2¶source
bloqade.squin.stdlib.broadcast.noise.depolarize2
Signature
def depolarize2(p: float, controls: ilist.IList[Qubit, N], targets: ilist.IList[Qubit, N]) -> NoneSymmetric two-qubit depolarization channel applied to a set of control and target qubits.
For each pair of qubits from the controls and targets lists, this will randomly select one
of the pauli products
{IX, IY, IZ, XI, XX, XY, XZ, YI, YX, YY, YZ, ZI, ZX, ZY, ZZ}
each with a probability p / 15. No noise is applied with a probability of 1 - p.
Parameters
| Name | Type | Description |
|---|---|---|
p | float | The probability with which a Pauli product is applied. |
controls | ilist.IList[Qubit, N] | The list of control qubits. |
targets | ilist.IList[Qubit, N] | The list of target qubits. |