qit.examples.phase_estimation¶
- qit.examples.phase_estimation(t, U, s, implicit=False)¶
Quantum phase estimation algorithm.
- Parameters
- Returns
state of the index register after the phase estimation circuit, but before final measurement.
- Return type
Estimate an eigenvalue of U using t qubits, starting from the state s.
To get a result accurate to n bits with probability
, choose