deltakit.circuit.noise_channels.PauliXError.generator_from_prob#

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

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