This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
RobustPhaseEstimation vs QuantumPhaseEstimation #253
Open
Description
Is your feature request related to a problem? Please describe.
RobustPhaseEstimation and QuantumPhaseEstimation return quite different values as "phases", which makes switching between the two non-trivial.
- QPE returns (after measurement) an integer which, when divided by 2^(bits of precision), produces a floating-point number between 0 and 1, which needs to be multiplied by 2π to get a phase e^{iϕ}. The API documentation does not describe the return, and the only range in the docs is ϕ∈[0,2π) which seems to suggest that no multiplication by 2π is necessary.
- Robust PE returns a floating point phase between -π and π which corresponds to e^{iϕ} directly.
Describe the solution you'd like
It would be great to unify the outputs of these operations or at least to document them better, with specific output descriptions and examples.