guppyalgos.algorithms.phase_estimation.canonical_phase_estimation¶
Phase estimation.
Functions
|
Algorithmic primitive for canonical quantum phase estimation. |
|
Algorithmic primitive for canonical quantum phase estimation. |
- guppyalgos.algorithms.phase_estimation.canonical_phase_estimation.iqpe(phase_reg, unitary_regs, inverse_power_oracle)¶
Algorithmic primitive for canonical quantum phase estimation.
- Parameters:
phase_reg (
array[qubit,TypeVar(n_q_a, bound=nat)]) – The phase register on which the phase is written.unitary_regs (
TypeVar(UnitaryRegs)) – Registers acted on by the powered controlled unitary. It is the responsibility of the powered unitary to interpret this set of registers correctly.inverse_power_oracle (
Callable[[qubit,TypeVar(UnitaryRegs),int],None]) – Controlled oracle for the inverse unitary powers.
- Return type:
- Returns:
The binary power phase kickback encoded ancilla register in superposition with the unitary registers.
- guppyalgos.algorithms.phase_estimation.canonical_phase_estimation.qpe(phase_reg, unitary_regs, power_oracle)¶
Algorithmic primitive for canonical quantum phase estimation.
- Parameters:
phase_reg (
array[qubit,TypeVar(n_q_a, bound=nat)]) – The phase register on which the phase is written.unitary_regs (
TypeVar(UnitaryRegs)) – Registers acted on by the powered controlled unitary. It is the responsibility of the powered unitary to interpret this set of registers correctly.power_oracle (
Callable[[qubit,TypeVar(UnitaryRegs),int],None]) – Controlled oracle that applies the requested unitary power.
- Return type:
- Returns:
The binary power phase kickback encoded ancilla register in superposition with the unitary registers.