Closed scarrazza closed 3 months ago
Correct, this is what is written in the wheel:
Requires-Dist: cma (>=3.3.0,<4.0.0)
Requires-Dist: hyperopt (>=0.2.7,<0.3.0)
Requires-Dist: joblib (>=1.2.0,<2.0.0)
Requires-Dist: networkx (>=3.2.1,<4.0.0)
Requires-Dist: numpy (>=1.26.4,<2.0.0)
Requires-Dist: openqasm3[parser] (>=0.5.0)
Requires-Dist: qulacs (>=0.6.4,<0.7.0) ; python_version > "3.9" or sys_platform != "darwin"
Requires-Dist: scipy (>=1.10.1,<2.0.0)
Requires-Dist: setuptools (>=69.1.1,<71.0.0)
Requires-Dist: sympy (>=1.11.1,<2.0.0)
Requires-Dist: tabulate (>=0.9.0,<0.10.0)
Requires-Dist: tensorflow (>=2.16.1,<3.0.0) ; (sys_platform == "linux" or sys_platform == "darwin") and (extra == "tensorflow")
Requires-Dist: torch (>=2.1.1,<3.0.0) ; extra == "torch"
It seems that wheels have no mechanism of making a dependency "optional", other marking it as part of an extra
. So, the optional
entry on its own is Poetry-specific, and forgotten when the package is built.
Indeed, #1410 should resolve the issue.
I have just realized (thanks to this) that qulacs is always a dependency of qibo when installing with pip. However, I am not sure why this is happening, given that tensorflow and torch are working as expected.
Here the output of a
pip install qibo
: