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

Bug: Flatten QuantumArray in SB_arithmetic.py #43

Open renezander90 opened 5 months ago

renezander90 commented 5 months ago

Line 572-573 in SB_arithmetic.py:

 if isinstance(qf_list, QuantumArray):
        qf_list = list(qf_list.flatten().qv_array)

Should this be:

 if isinstance(qf_list, QuantumArray):
        qf_list = list(qf_list.flatten())

?

positr0nium commented 5 months ago

Yes, feel free to push a fix :)