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

BackendV2 support for old device API #514

Merged
merged 8 commits into from
Apr 19, 2024
Merged

Conversation

austingmhuang
Copy link
Contributor

@austingmhuang austingmhuang commented Apr 19, 2024

This pull request aims to provide support for V2 devices using the old device API. This addresses an issue from a user requesting this feature. There is a similar PR open for the new device API as well, but that might not be ready with the 0.36 release.

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (e3f9482) to head (eb40690).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #514   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          557       557           
=========================================
  Hits           557       557           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@lillian542 lillian542 left a comment

Choose a reason for hiding this comment

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

Since this change adds support for new functionality, add it (and your name) to the changelog 🚀

tests/test_qiskit_device.py Show resolved Hide resolved
@austingmhuang austingmhuang linked an issue Apr 19, 2024 that may be closed by this pull request
@austingmhuang austingmhuang changed the title v1 and v2 support for old device BackendV1 support for old device API Apr 19, 2024
Copy link
Contributor

@obliviateandsurrender obliviateandsurrender left a comment

Choose a reason for hiding this comment

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

Thanks @austingmhuang, this looks great! Just leaving a couple of suggestions

pennylane_qiskit/qiskit_device.py Show resolved Hide resolved
tests/test_qiskit_device.py Show resolved Hide resolved
tests/test_qiskit_device.py Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@austingmhuang austingmhuang changed the title BackendV1 support for old device API BackendV2 support for old device API Apr 19, 2024
Copy link
Contributor

@lillian542 lillian542 left a comment

Choose a reason for hiding this comment

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

Thanks @austingmhuang!

Let's remove the .DS_Store file, that's just a thing that happens locally on Macs, we shouldn't need it on GitHub. But otherwise looks good to go to me! 🎉

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
Copy link
Contributor

@obliviateandsurrender obliviateandsurrender left a comment

Choose a reason for hiding this comment

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

Thanks @austingmhuang!

@austingmhuang austingmhuang merged commit a2e56b5 into master Apr 19, 2024
14 checks passed
@austingmhuang austingmhuang deleted the v1andv2_for_old_device branch April 19, 2024 18:34
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.

Support b.num_qubits for BackendV2 Qiskit objects
4 participants