deltakit.circuit.noise_channels.Depolarise2.generator_from_prob#

classmethod Depolarise2.generator_from_prob(*gate_args, tag: str | None = None, **gate_kwargs) Callable[[Sequence[Qubit[T] | T]], list[Self]]#

Return a classmethod that can be used to create a noise channel with a predetermined probability