View source on GitHub |
Takes a sequence of qubit pairs and returns a sequence in which every pair is at distance two.
cirq.contrib.acquaintance.strategies.quartic_paired.qubit_pairs_to_qubit_order(
qubit_pairs: Sequence[Sequence['cirq.Qid']]
) -> List['cirq.Qid']
Specifically, given pairs (1a, 1b), (2a, 2b), etc. returns (1a, 2a, 1b, 2b, 3a, 4a, 3b, 4b, ...).