bloqade.squin.noise.stmts.Depolarize
← Module overview
class
classDepolarize¶source
bloqade.squin.noise.stmts.Depolarize
Bases: SingleQubitNoiseChannel
Apply depolarize error to single qubit.
class DepolarizeThis 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
| Name | Type | Default | Description |
|---|---|---|---|
p | ir.SSAValue | info.argument(types.Float) | |
qubits | ir.SSAValue | info.argument(ilist.IListType[QubitType, types.Any]) |