Module quantum_counting

Source
Expand description

Quantum Counting and Amplitude Estimation

This module implements quantum counting and amplitude estimation algorithms, which are key components for many quantum algorithms including Shor’s algorithm and quantum database search.

TODO: The current implementations are simplified versions. Full implementations would require:

  • Proper controlled unitary implementations
  • Full QFT and inverse QFT
  • Better phase extraction from measurement results
  • Integration with circuit builder for more complex operations

Structs§

QuantumAmplitudeEstimation
Quantum Amplitude Estimation
QuantumCounting
Quantum Counting algorithm
QuantumPhaseEstimation
Quantum Phase Estimation (QPE) algorithm

Functions§

amplitude_estimation_example
Example: Estimate amplitude of marked states
quantum_counting_example
Example: Count solutions to a simple search problem