Skip to content

bloqade.squin.stdlib.broadcast.noise.depolarize2

← Module overview

functiondepolarize2source

bloqade.squin.stdlib.broadcast.noise.depolarize2

Signature
def depolarize2(p: float, controls: ilist.IList[Qubit, N], targets: ilist.IList[Qubit, N]) -> None

Symmetric 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

NameTypeDescription
pfloatThe probability with which a Pauli product is applied.
controlsilist.IList[Qubit, N]The list of control qubits.
targetsilist.IList[Qubit, N]The list of target qubits.
source