Skip to content

Commit 97aa30c

Browse files
authored
⚡️ Use Gate in AE phase_estimation path (#886)
1 parent ca1df6c commit 97aa30c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/mqt/bench/benchmarks

src/mqt/bench/benchmarks/ae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def create_circuit(num_qubits: int, probability: float = 0.2) -> QuantumCircuit:
4848
num_eval_qubits = num_qubits - 1
4949

5050
# Build the phase estimation circuit with the specified number of evaluation qubits and the Grover operator.
51-
pe = phase_estimation(num_eval_qubits, grover_operator)
51+
pe = phase_estimation(num_eval_qubits, grover_operator.to_gate(label="Q"))
5252

5353
# Create the overall circuit using the quantum registers from the phase estimation circuit.
5454
qc = QuantumCircuit(*pe.qregs)

0 commit comments

Comments
 (0)