qiskit.algorithms.Grover.construct_circuit¶
- Grover.construct_circuit(problem, power=None, measurement=False)[source]¶
Construct the circuit for Grover’s algorithm with
power
Grover operators.- Paramètres
problem (
AmplificationProblem
) – The amplification problem for the algorithm.power (
Optional
[int
]) – The number of times the Grover operator is repeated. If None, this argument is set to the first item initerations
.measurement (
bool
) – Boolean flag to indicate if measurement should be included in the circuit.
- Renvoie
the QuantumCircuit object for the constructed circuit
- Type renvoyé
- Lève
ValueError – If no power is passed and the iterations are not an integer.