C3: Multi-Controlled X

Time Limit: 3 seconds

Memory Limit: 512 MiB

Score: 300 points

Problem Statement

Using only Clifford gates and CCXCCX gate,

implement an oracle UU satisfying the following on a quantum circuit qc\mathrm{qc} with 77 qubits.

For any quantum state ψ5\ket{\psi}_{5},

ψ500U(CCCCX(4)I2)ψ500\ket{\psi}_{5} \ket{00} \xrightarrow{U} (CCCCX(4) \otimes I^{\otimes 2}) \ket{\psi}_{5} \ket{00}

Here, CCCCX(4)CCCCX(4) denotes the 4-controlled XX gate with qubit 5 as the target qubit.

Constraints

  • Only Clifford gates and CCXCCX gate can be used.
  • The submitted code must follow the specified format:
from qiskit import QuantumCircuit
 
 
def solve() -> QuantumCircuit:
    qc = QuantumCircuit(7)
    # Write your code here:
 
    return qc

Please sign in to submit your answer.