You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Context:**
We were improperly preparing sparse states with default qubit.
**Description of the Change:**
Reshapes the state into the proper `[2]*num_wires` form.
**Benefits:**
**Possible Drawbacks:**
**Related GitHub Issues:**
Solves #7160 [sc-87447]
---------
Co-authored-by: Yushao Chen (Jerry) <chenys13@outlook.com>
Expected behavior
The circuit below should run without error.
Actual behavior
Seems like a wire order / label issue.
Additional information
No response
Source code
Tracebacks
System information
Name: PennyLane Version: 0.41.0.dev60 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: /Users/isaac/.virtualenvs/pl-master/lib/python3.11/site-packages Requires: appdirs, autograd, autoray, cachetools, diastatic-malt, networkx, numpy, packaging, pennylane-lightning, requests, rustworkx, scipy, tomlkit, typing_extensions Required-by: PennyLane_Lightning Platform info: macOS-15.3.2-arm64-arm-64bit Python version: 3.11.11 Numpy version: 2.2.4 Scipy version: 1.15.2 Installed devices: - lightning.qubit (PennyLane_Lightning-0.40.0) - default.clifford (PennyLane-0.41.0.dev60) - default.gaussian (PennyLane-0.41.0.dev60) - default.mixed (PennyLane-0.41.0.dev60) - default.qubit (PennyLane-0.41.0.dev60) - default.qutrit (PennyLane-0.41.0.dev60) - default.qutrit.mixed (PennyLane-0.41.0.dev60) - default.tensor (PennyLane-0.41.0.dev60) - null.qubit (PennyLane-0.41.0.dev60) - reference.qubit (PennyLane-0.41.0.dev60)
Existing GitHub issues
The text was updated successfully, but these errors were encountered: