iqm.benchmarks.entanglement.ghz_optimal.cx_pairs

Contents

iqm.benchmarks.entanglement.ghz_optimal.cx_pairs#

iqm.benchmarks.entanglement.ghz_optimal.cx_pairs(direct_ghz: IQMCircuit, order: Sequence[int]) → list[tuple[int, int]]#

Recover the physical-index CX pairs of a generated GHZ circuit, in circuit order.

Parameters:
Returns:

The (control, target) pairs as physical qubit indices.

Return type:

list[tuple[int, int]]