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

Possible error when executing `transpile` if `symengine` is installed. #21

Closed MatP1337 closed 7 months ago

MatP1337 commented 7 months ago

If symengine is installed and used by qiskit-terra, an error may occur when running transpile, see https://gitlab.fokus.fraunhofer.de/qompiler/zx-integration/-/merge_requests/2.

According to https://qiskit.org/documentation/release_notes.html#release-notes-0-18-0-new-features this concerns the following situations:

A new requirement symengine has been added for Linux (on x86_64, aarch64, and ppc64le) and macOS users (x86_64 and arm64). It is an optional dependency on Windows (and available on PyPi as a precompiled package for 64bit Windows) and other architectures.

Not only the processor and the operating system, but also the bitness of the Python installation seem to play a role. So far, I have only actively observed the problem under Linux with a complete 64bit installation.

edit1 (@zickgraf): I have also tried to recreate the problem in a Windows VM. But I am already failing at the installation of Qrisp because some DLLs (llvmlite.dll) are not found. Is pip install qrisp not sufficient under Windows?Either way, I cannot specify steps-to-reproduce for Windows. However, I suspect that the problem also occurs there if you make Qiskit Terra use symengine.According to the linked release notes, this is supposed to be optional and bring speed advantages.

edit2 (@sea): I think I have fixed the problem. Can you check it again?

edit3 (@zickgraf): The error continues to occur for me as of 97bbbdef.

This issue was opened by Fabian Zickgraf (@zickgraf).

This issue was migrated from the internal development server after the 0.4 update and transition to open development