CQCL / pytket-braket

pytket-braket, extensions for pytket quantum SDK
Apache License 2.0
2 stars 2 forks source link

test failed | numpy.core.multiarray failed to import #36

Open cqc-melf opened 2 years ago

cqc-melf commented 2 years ago

The ci tests run on winodws with python 3.10 stop with an numpy.core.multiarray failed to import

See

https://github.com/CQCL/pytket-braket/actions/runs/3318202037/jobs/5483850728

cqc-melf commented 2 years ago

conftest.py:19: in from braket.aws.aws_session import AwsSession # type: ignore C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\aws__init.py:14: in from braket.aws.aws_device import AwsDevice, AwsDeviceType # noqa: F401 C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\aws\aws_device.py:26: in from braket.aws.aws_quantum_task import AwsQuantumTask C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\aws\aws_quantum_task.py:26: in from braket.circuits import Instruction C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\circuits__init.py:14: in from braket.circuits import ( # noqa: F401 C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\circuits\circuit.py:51: in from braket.circuits.unitary_calculation import calculate_unitary, calculate_unitary_big_endian C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\circuits\unitary_calculation.py:21: in from braket.default_simulator.linalg_utils import multiply_matrix C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\default_simulator\init__.py:16: in from braket.default_simulator import ( # noqa: F401 C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\default_simulator\gate_operations.py:23: in from braket.default_simulator.operation import GateOperation C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\braket\default_simulator\operation.py:20: in from scipy.linalg import fractional_matrix_power C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\scipy\linalg\init__.py:197: in from ._misc import * C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\scipy\linalg_misc.py:3: in from .blas import get_blas_funcs C:\hostedtoolcache\windows\Python\3.10.8\x64\lib\site-packages\scipy\linalg\blas.py:213: in from scipy.linalg import _fblas E ImportError: numpy.core.multiarray failed to import Error: Process completed with exit code 4.

cqc-melf commented 2 years ago

Issue is only occurring with numpy 1.23.4

temporarily fixed in https://github.com/CQCL/pytket-braket/pull/38

Long temp solution should be an update of the minimal required numpy version in tket when this is solved in numpy / braket dependencies