deltakit.circuit.noise_channels.TwoQubitNoiseChannel#

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

Bases: NoiseChannel[T]

Abstract noise channel which acts on pairs of qubits.

stim_string#

The string that stim associates to this gate.

Type:

str

Parameters:
  • qubit1 (Qubit[T] | T) – The first qubit in the noise channel.

  • qubit2 (Qubit[T] | T) – The second qubit in the noise channel.

Methods#

TwoQubitNoiseChannel.approx_equals

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

TwoQubitNoiseChannel.from_consecutive

Yield a class instance for each pair in a flattened sequence of data.

TwoQubitNoiseChannel.generator_from_prob

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

TwoQubitNoiseChannel.stim_targets

Get all stim gate targets for this noise channel in a tuple.

TwoQubitNoiseChannel.transform_qubits

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