eclipse-qrisp / Qrisp

Qrisp - a framework for high-level programming of Quantum computers
https://www.qrisp.eu/
Eclipse Public License 2.0
83 stars 23 forks source link

Phase polynomials #57

Closed renezander90 closed 2 months ago

renezander90 commented 2 months ago

Introduces methods for application of Hamiltonian functions:

app_sb_phase_polynomial -- applies Hamiltonian function that is given by a semi-Boolean polynomial acting on a list of QuantumVariables

app_phase_polynomial -- applies Hamiltonian function that is given by a polynomial acting on a list of QuantumFloats

Note: Both methods apply diagonal unitaries, therefore should be "lifted" The "lifted" decorator is commented out, otherwise documentation for the methods is not generated properly (at least when I generate it).