qdk_chemistry.algorithms.amplitude_amplification.amplitude_amplification module
QDK/Chemistry amplitude amplification.
- class qdk_chemistry.algorithms.amplitude_amplification.amplitude_amplification.AmplitudeAmplification[source]
Bases:
AlgorithmBuild an amplitude-amplified circuit.
Each round flips a flag on the good subspace and reflects about the prepared state, taking probability \(a\) to \(\sin^2((2k+1)\arcsin\sqrt{a})\) after \(k\) rounds. That falls again past the first maximum, so pick
roundsfrom an estimate of \(a\).Reference: L. Lin, Lecture Notes on Quantum Algorithms for Scientific Computation, arXiv:2201.08309, Chapter 2.
- run(*args, **kwargs)
Run the algorithm with the provided arguments.
This method wraps the internal _run_impl method to provide a consistent interface for executing the algorithm.
- Parameters:
args – The arguments required to run the algorithm.
kwargs – The keyword arguments required to run the algorithm.
- Returns:
The results of the algorithm
- Return type:
Any
- class qdk_chemistry.algorithms.amplitude_amplification.amplitude_amplification.AmplitudeAmplificationFactory[source]
Bases:
AlgorithmFactoryFactory class for creating AmplitudeAmplification instances.