artiste-qb-net / qubiter

Python tools for reading, writing, compiling, simulating quantum computer circuits. Includes numpy and tensorflow backends. “Quantum Space, the final frontier. These are the voyages of the starship Qubiter. Its five-year mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no man has gone before.”
Other
120 stars 31 forks source link

Loop dependent evaluation of placeholder variables #22

Closed rrtucci closed 5 years ago

rrtucci commented 5 years ago

https://qbnets.wordpress.com/2019/01/21/qubiter-todo-proposal-loop-dependent-placeholder-variables/

rrtucci commented 5 years ago

Update (Jan 22, 2019): I was thinking of possible applications of single and nested loops in quantum languages. Implementing the Trotter approximation and the algorithm commonly referred to as QAOA, with a single loop are 2 obvious applications. Implementing the Trotter-Suzuki approximation would require not just one loop, but several nested loops. Last night, I wrote a simple jupyter notebook investigating further the implementation of Trotter-Suzuki with nested loops. Here it is

https://nbviewer.jupyter.org/url/www.ar-tiste.com/Python_Functions_For_Printing_Trotter_Suzuki_Approx.ipynb

rrtucci commented 5 years ago

Forgot to mention, Grover's algorithm can also be implemented with a single loop

rrtucci commented 5 years ago

Done, Feb 13, 2019