German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

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 as result.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 iterations

  • is None or a list)

Rückgabetyp

GroverResult