myQLM / myqlm-issues

4 stars 1 forks source link

qat.devices depends on networkx<3.0 (Ubuntu 22.04) #21

Closed Gistbatch closed 1 year ago

Gistbatch commented 1 year ago

Describe the bug When setting up a device architecture with an incompatible version of networkx the program fails due to:

from qat.devices import LineDevice
File "__init__.py", line 155, in init qat.devices.__init__
File "rigetti.py", line 31, in init qat.devices.rigetti
AttributeError: module 'networkx' has no attribute 'from_numpy_matrix'

on Python 3.10

To Reproduce Steps to reproduce the behavior:

  1. Set up a new Python environment and install the packages pip install qlmaas myqlm
  2. Run a Python shell
  3. Import a device e.g. from qat.devices import LineDevice

Expected behavior When installing the correct dependencies are pulled in.

Screenshots Not applicable.

Desktop (please complete the following information):

Additional context None.

ArnaudAtos commented 1 year ago

Dear @Gistbatch, myQLM 1.9 has been released recently. Module qat-devices does not rely on networkx < 3.0 anymore