Skip to content

bloqade.squin.noise.stmts.Depolarize

← Module overview

classDepolarizesource

bloqade.squin.noise.stmts.Depolarize

Bases: SingleQubitNoiseChannel

Apply depolarize error to single qubit.

class Depolarize

This randomly picks one of the three Pauli operators to apply. Each Pauli operator has the probability p / 3 to be selected. No operator is applied with the probability 1 - p.

Attributes

NameTypeDefaultDescription
pir.SSAValueinfo.argument(types.Float)
qubitsir.SSAValueinfo.argument(ilist.IListType[QubitType, types.Any])