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