qiskit.algorithms.Grover.amplify¶
- Grover.amplify(amplification_problem)[Quellcode]¶
Run the Grover algorithm.
- Parameter
amplification_problem (
AmplificationProblem
) – The amplification problem.- Rückgabetyp
- Rückgabe
The result as a
GroverResult
, where e.g. the most likely state can be queried asresult.top_measurement
.- Verursacht
TypeError – If
is_good_state
is not provided and is required (i.e. when iterationsis None or a list) –