mqt.bench.benchmarks.grover¶
Grover benchmark definition.
Module Contents¶
- create_circuit(num_qubits: int, *, for_loop: bool = False) QuantumCircuit[source]¶
Returns a quantum circuit implementing Grover’s algorithm.
- Parameters:
num_qubits – number of qubits of the returned quantum circuit
for_loop – whether to use a structured for-loop for the Grover iterations