classical_qpe
This module contains the necessary functions and classes to implement the classical Quantum Phase Estimation with the inverse of the Quantum Fourier Transform. The following references were used:
Brassard, G., Hoyer, P., Mosca, M., & Tapp, A. (2000). Quantum amplitude amplification and estimation. AMS Contemporary Mathematics Series, 305. https://arxiv.org/abs/quant-ph/0005055v1
NEASQC deliverable: D5.1: Review of state-of-the-art for Pricing and Computation of VaR
Author: Gonzalo Ferro Costas & Alberto Manzano Herrero
- class QQuantLib.PE.classical_qpe.CQPE(**kwargs)
Class for using classical Quantum Phase Estimation, with inverse of Quantum Fourier Transformation.
- Parameters:
kwars (dictionary) – dictionary that allows the configuration of the CQPE algorithm: Implemented keys:
initial_state (kwargs, QLM Program) – QLM Program with the initial Psi state over the Grover-like operator will be applied Only used if oracle is None
unitary_operator (kwargs, QLM gate or routine) – Grover-like operator which autovalues want to be calculated Only used if oracle is None
cbits_number (kwargs, int) – number of classical bits for phase estimation
qpu (kwargs, QLM solver) – solver for simulating the resulting circuits
shots (kwargs, int) – number of shots for quantum job. If 0 exact probabilities will be computed.
- run()
Creates the quantum phase estimation routine