bloqade.squin.stdlib.simple.noise.depolarize2
← Module overview
function
source
functiondepolarize2¶source
bloqade.squin.stdlib.simple.noise.depolarize2
def depolarize2(p: float, control: Qubit, target: Qubit) -> NoneSymmetric two-qubit depolarization channel applied to a pair of qubits.
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. |
control | Qubit | The control qubit. |
target | Qubit | The target qubit. |