The quantum circuit to which QPE will be applied
Starting index of control qubits
Number of control qubits (determines precision)
Optional
targetStart: numberStarting index of target qubits (eigenstate register)
Number of target qubits
Name of the unitary operator for controlled applications
Optional
unitaryParams: { angle?: number; [key: string]: unknown }Optional parameters for the unitary operator
Applies Quantum Phase Estimation to estimate the phase of a unitary operator.
This is the core implementation of QPE that estimates the phase φ such that U|ψ⟩ = e^(2πiφ)|ψ⟩, where U is a unitary operator and |ψ⟩ is an eigenstate.
Algorithm Steps:
Precision and Success Probability: