deltakit.circuit.gates.ISWAP_DAG.from_consecutive#
- classmethod ISWAP_DAG.from_consecutive(pairs: Sequence[UT | VT | T], *, tag: str | None = None) Generator[Self, None, None]#
Yield an class instance for each pair in a flattened sequence of data.
- Parameters:
pairs (Sequence[UT | VT | T]) – The flat sequence of data. Length must be a multiple of 2.
tag (str | None) – Optional tag for the constructed gate.
- Yields:
Generator[TwoOperandOperationT, None, None] – Qubit pair from neighbouring elements in the sequence.