Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PennyLane commit breaking the plugin #52

Closed
nvitucci opened this issue Jun 12, 2020 · 2 comments
Closed

PennyLane commit breaking the plugin #52

nvitucci opened this issue Jun 12, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@nvitucci
Copy link

I noticed that a recent commit in PennyLane introduced a bug in the master version of the plugin, resulting in a KeyError: <Wires = [0]> exception when the circuit is evaluated. Minimal example:

  1. Install PennyLane with pip
  2. Clone this repo and install it with pip install -e .
  3. Run this code:
import pennylane as qml

def circuit(angles, **kwargs):
    qml.RX(angles[0], wires=0)
    
dev = qml.device('forest.qvm', device='2q-qvm', shots=10, noisy=True)

params = [0.2]
qnode = qml.map(circuit, [qml.PauliZ(0)], dev)
print(qnode(params))
@josh146
Copy link
Member

josh146 commented Jun 12, 2020

Thanks @nvitucci! We're in the process of adding a new wires class to PennyLane, and were attempting to add it in a non-breaking manner - looks like that hasn't worked 🙂

We'll have a think back over in PennyLane core and decide the best way to fix this

@josh146 josh146 added the bug Something isn't working label Jun 12, 2020
@antalszava
Copy link
Contributor

Closing this after it has been resolved with updates such as #55.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants