- Grover.construct_circuit(problem, power=None, measurement=False)¶
Construct the circuit for Grover’s algorithm with
AmplificationProblem) – The amplification problem for the algorithm.
int]) – The number of times the Grover operator is repeated. If None, this argument is set to the first item in
bool) – Boolean flag to indicate if measurement should be included in the circuit.
the QuantumCircuit object for the constructed circuit
- Return type
ValueError – If no power is passed and the iterations are not an integer.