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:**
Operators that don't have any wires (`GlobalPhase` and `Identity`) are
newer additions that don't have full feature coverage in all places.
This can lead to some logic that is unable to handle them.
**Description of the Change:**
Allows `Sum._sort` and `Prod._sort` to work with operators that don't
have any wires.
**Benefits:**
**Possible Drawbacks:**
**Related GitHub Issues:**
Fixes#5498 [sc-61115]
Expected behavior
This should be true
Actual behavior
Additional information
if I specify the wires in GlobalPhase, it works
Source code
No response
Tracebacks
No response
System information
Name: PennyLane Version: 0.36.0.dev0 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: /usr/local/lib/python3.10/dist-packages Requires: appdirs, autograd, autoray, cachetools, networkx, numpy, pennylane-lightning, requests, rustworkx, scipy, semantic-version, toml, typing-extensions Required-by: PennyLane_Lightning Platform info: Linux-6.1.58+-x86_64-with-glibc2.35 Python version: 3.10.12 Numpy version: 1.25.2 Scipy version: 1.11.4 Installed devices: - lightning.qubit (PennyLane_Lightning-0.35.1) - default.clifford (PennyLane-0.36.0.dev0) - default.gaussian (PennyLane-0.36.0.dev0) - default.mixed (PennyLane-0.36.0.dev0) - default.qubit (PennyLane-0.36.0.dev0) - default.qubit.autograd (PennyLane-0.36.0.dev0) - default.qubit.jax (PennyLane-0.36.0.dev0) - default.qubit.legacy (PennyLane-0.36.0.dev0) - default.qubit.tf (PennyLane-0.36.0.dev0) - default.qubit.torch (PennyLane-0.36.0.dev0) - default.qutrit (PennyLane-0.36.0.dev0) - null.qubit (PennyLane-0.36.0.dev0)
Existing GitHub issues
The text was updated successfully, but these errors were encountered: