View source on GitHub |
Decomposition of all-to-all connected qubits are different from line qubits or grid qubits.
cirq_ionq.ionq_gateset.decompose_all_to_all_connect_ccz_gate(
ccz_gate: 'cirq.CCZPowGate', qubits: Tuple['cirq.Qid', ...]
) -> 'cirq.OP_TREE'
For example, for qubits in the same ion trap, the decomposition of CCZ gate will be:
0: ──────────────@──────────────────@───@───p──────@─── │ │ │ │ 1: ───@──────────┼───────@───p──────┼───X───p^-1───X─── │ │ │ │ 2: ───X───p^-1───X───p───X───p^-1───X───p──────────────
where p = T**ccz_gate._exponent