[BUG] math.get_interface
can't extract scipy
from a list of sparse arrays/matrices
#7012
Closed
1 task done
Labels
bug 🐛
Something isn't working
Expected behavior
Let
a
be a sparse array or matrix from scipy.For
get_interface
, no matter the input isa
or[a, a]
or multiplea
, it should return 'scipyinstead of
numpy`.Actual behavior
Only works for
a
. All the other situationsget_inteface
gets 'numpy`Additional information
No response
Source code
Tracebacks
System information
Name: PennyLane Version: 0.41.0.dev23 Summary: PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network. Home-page: https://github.com/PennyLaneAI/pennylane Author: Author-email: License: Apache License 2.0 Location: /home/yushao.chen/Documents/pennylane/venv/lib/python3.11/site-packages Editable project location: /home/yushao.chen/Documents/pennylane Requires: appdirs, autograd, autoray, cachetools, diastatic-malt, networkx, numpy, packaging, pennylane-lightning, requests, rustworkx, scipy, tomlkit, typing_extensions Required-by: amazon-braket-pennylane-plugin, PennyLane-Catalyst, PennyLane_Lightning, PennyLane_Lightning_Kokkos Platform info: Linux-6.5.0-18-generic-x86_64-with-glibc2.35 Python version: 3.11.11 Numpy version: 1.26.4 Scipy version: 1.15.1 Installed devices: - nvidia.custatevec (PennyLane-Catalyst-0.11.0.dev22) - nvidia.cutensornet (PennyLane-Catalyst-0.11.0.dev22) - oqc.cloud (PennyLane-Catalyst-0.11.0.dev22) - softwareq.qpp (PennyLane-Catalyst-0.11.0.dev22) - default.clifford (PennyLane-0.41.0.dev23) - default.gaussian (PennyLane-0.41.0.dev23) - default.mixed (PennyLane-0.41.0.dev23) - default.qubit (PennyLane-0.41.0.dev23) - default.qutrit (PennyLane-0.41.0.dev23) - default.qutrit.mixed (PennyLane-0.41.0.dev23) - default.tensor (PennyLane-0.41.0.dev23) - null.qubit (PennyLane-0.41.0.dev23) - reference.qubit (PennyLane-0.41.0.dev23) - lightning.qubit (PennyLane_Lightning-0.40.0) - lightning.kokkos (PennyLane_Lightning_Kokkos-0.40.0) - braket.aws.ahs (amazon-braket-pennylane-plugin-1.31.2) - braket.aws.qubit (amazon-braket-pennylane-plugin-1.31.2) - braket.local.ahs (amazon-braket-pennylane-plugin-1.31.2) - braket.local.qubit (amazon-braket-pennylane-plugin-1.31.2)
Existing GitHub issues
The text was updated successfully, but these errors were encountered: