eclipse-qrisp / Qrisp

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

fix mixer cycle #89

Closed F-a-b-r-i-z-i-o closed 3 weeks ago

F-a-b-r-i-z-i-o commented 4 weeks ago

I found a possible error in the implementation of the xy_mixer. If the number of qubits is odd the corrent implementation of the mixer does not close the ring as it leaves the qubits 0 and 1 not connected. In case the number of qubits is even, the mixer closes the ring correctly. I think it is correct to always close the mixer in both cases.

positr0nium commented 3 weeks ago

Appreciate it @F-a-b-r-i-z-i-o :)