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

Update the device argument to the qnode decorator #1969

Merged
merged 6 commits into from
Dec 2, 2021

Conversation

antalszava
Copy link
Contributor

@antalszava antalszava commented Dec 2, 2021

Changes to having a device argument instead of dev. The reason is that having the argument be called dev doesn't provide backwards compatibility. (See failing QML demonstration here that failed because @qml.qnode(device=dev) .)

Changes to having a `device` argument instead of `dev`. The reason is that having the argument be called `dev` doesn't provide backwards compatibility. (See [failing QML demonstration](https://github.com/PennyLaneAI/qml/runs/4367411103?check_suite_focus=true#step:8:2501) here.)
@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2021

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@codecov
Copy link

codecov bot commented Dec 2, 2021

Codecov Report

Merging #1969 (100ec31) into master (dba8147) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1969   +/-   ##
=======================================
  Coverage   98.81%   98.81%           
=======================================
  Files         226      226           
  Lines       17348    17348           
=======================================
  Hits        17143    17143           
  Misses        205      205           
Impacted Files Coverage Δ
pennylane/qnode.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dba8147...100ec31. Read the comment docs.

Copy link
Member

@josh146 josh146 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @antalszava!

@antalszava antalszava merged commit 475c5e6 into master Dec 2, 2021
@antalszava antalszava deleted the antalszava-patch-4 branch December 2, 2021 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants