QPE#
- diffqc.lib.QPE(op, c: Array, wires: Tuple[int], U: Array, aux: Tuple[int]) Array #
Quantum Phase Estimation
- Parameters
op –
dense
orsparse
modulec (jnp.ndarray) – qubits state
wires (tuples of ints) – wires. Eigen vector of U has been encoded.
U (jnp.ndarray) – unitary matrix of which eigen value phase is estimated
aux (tuple of ints) – auxiliary qubits. These should be
|00...0>
- Returns
applied qubits state. Phase is encoded at auxiliary qubits.
- Return type
jnp.ndarray