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

Keyword argument bug fixes #206

Merged
merged 3 commits into from May 22, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/tutorials/qubit_rotation.rst
Expand Up @@ -249,7 +249,7 @@ We can then evaluate this gradient function at any point in the parameter space.
>>> dcircuit(0.54, 0.12)
(array(-0.510438652516502), array(-0.10267819945693203))

Keyword arguments may also be used in your custom quantum function. PennyLane does differentiate QNodes with respect to keyword arguments,
Keyword arguments may also be used in your custom quantum function. PennyLane does **not** differentiate QNodes with respect to keyword arguments,
so they are useful for passing external data to your QNode.


Expand Down
2 changes: 1 addition & 1 deletion pennylane/operation.py
Expand Up @@ -373,7 +373,7 @@ def wires(self):
"""
w = [i.val if isinstance(i, Variable) else i for i in self._wires]
self.check_wires(w)
return w
return [int(i) for i in w]

@property
def parameters(self):
Expand Down