C6: Controlled-Controlled-Z

Time Limit: 3 seconds

Memory Limit: 512 MiB

Score: 500 points

Problem Statement

Using only Clifford gates and TT gate,

implement an oracle UU satisfying U=CCZ(2)U = CCZ(2) on a quantum circuit qc\mathrm{qc} with 33 qubits.

Here, CCZ(2)CCZ(2) denotes the doubly-controlled ZZ gate with qubit 3 as the target qubit.

Constraints

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

Please sign in to submit your answer.