ProjectQ-Framework / ProjectQ

ProjectQ: An open source software framework for quantum computing
https://projectq.ch
Apache License 2.0
874 stars 271 forks source link

The code of QPE. #372

Closed quantum-rookie closed 4 years ago

quantum-rookie commented 4 years ago

hello, I want to know the specific code representation of the quantum phase estimation gate.

Takishima commented 4 years ago

You can see the code for the gate in the corresponding decomposition rule. You can find it in the following file: projectq/setups/decompositions/phaseestimation.py

quantum-rookie commented 4 years ago

Hi, i know this file. i've seen this before. i don't know how to realize the square root of U(It's acting on the qubits of the system ), the fourth square root of U on projectq. image