-
Notifications
You must be signed in to change notification settings - Fork 757
Open
Labels
bug πSomething isn't workingSomething isn't working
Description
Expected behavior
PennyLane should be compatible with all versions of pyzx as per the documentation,
"The `pyzx` package is required. You can install it with `pip install pyzx`."
Actual behavior
Due to some breaking changes introduced recently in pyzx==0.10.0, any transform from the zx module will error out - unable to be used.
Additional information
These transforms work fine with pyzx<0.10.
Source code
import pennylane as qml
import pennylane.transforms.zx as zx
dev = qml.device("default.qubit")
@zx.reduce_non_clifford
@qml.qnode(dev)
def circuit(x, y):
qml.T(0)
qml.Hadamard(0)
qml.Hadamard(0)
qml.CNOT([0, 1])
qml.T(0)
qml.RX(x, 1)
qml.RX(y, 1)
return qml.state()
print(qml.draw(circuit)(3.2, -2.2))Tracebacks
IndexError: list index out of rangeSystem information
PL v0.44Existing GitHub issues
- I have searched existing GitHub issues to make sure the issue does not already exist.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug πSomething isn't workingSomething isn't working