deltakit.circuit.noise_channels.TwoQubitNoiseChannel.from_consecutive#

classmethod TwoQubitNoiseChannel.from_consecutive(pairs: Sequence[Qubit[T] | T], *gate_args, tag: str | None = None, **gate_kwargs) Generator[Self, None, None]#

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

Parameters:
  • pairs (Sequence[Qubit[T] | T]) – The flat sequence of data. Length must be a multiple of 2.

  • tag (str | None) – An optional tag for the instruction.

Yields:

Generator[Depolarise2, None, None] – Qubit pair from neighbouring elements in the sequence.