We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca1df6c commit 97aa30cCopy full SHA for 97aa30c
1 file changed
src/mqt/bench/benchmarks/ae.py
@@ -48,7 +48,7 @@ def create_circuit(num_qubits: int, probability: float = 0.2) -> QuantumCircuit:
48
num_eval_qubits = num_qubits - 1
49
50
# 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)
+ pe = phase_estimation(num_eval_qubits, grover_operator.to_gate(label="Q"))
52
53
# Create the overall circuit using the quantum registers from the phase estimation circuit.
54
qc = QuantumCircuit(*pe.qregs)
0 commit comments