deltakit.circuit.noise_channels.OneQubitNoiseChannel#

class deltakit.circuit.noise_channels.OneQubitNoiseChannel(qubit: Qubit[T] | T, *args, tag: str | None = None, **kwargs)#

Bases: NoiseChannel[T]

Abstract noise channel which only acts on a single qubit.

stim_string#

The string that stim associates to this gate.

Type:

str

Parameters:

qubit (Qubit[T] | T) – The qubit that this noise channel error acts on.

Methods#

OneQubitNoiseChannel.approx_equals

Determine whether two noise channels are equal within a given tolerance.

OneQubitNoiseChannel.generator_from_prob

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

OneQubitNoiseChannel.stim_targets

Return all the stim targets which specifies this noise channel.

OneQubitNoiseChannel.transform_qubits

Transform this noise channel's qubits according to the id mapping.