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 code that is pending deprecation #301

Merged
merged 11 commits into from
May 4, 2023

Conversation

timmysilv
Copy link
Contributor

@timmysilv timmysilv commented May 3, 2023

While much of the code still works (sometimes), this is to future-proof us when Qiskit changes the details of their API.

I am very sorry for the mess that is test_ibmq.py

Note: I ran both test_ibmq.py and test_runtime.py with my token present, and then with it absent. All tests passed/skipped as expected in the respective scenario.

Fixes #289

@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #301 (f9b3d91) into fix-vqe-runtime (24d4564) will not change coverage.
The diff coverage is 100.00%.

@@                Coverage Diff                @@
##           fix-vqe-runtime      #301   +/-   ##
=================================================
  Coverage           100.00%   100.00%           
=================================================
  Files                    6         6           
  Lines                  301       303    +2     
=================================================
+ Hits                   301       303    +2     
Impacted Files Coverage Δ
pennylane_qiskit/aer.py 100.00% <100.00%> (ø)
pennylane_qiskit/qiskit_device.py 100.00% <100.00%> (ø)

@timmysilv timmysilv requested a review from rmoyard May 3, 2023 20:40
pennylane_qiskit/ibmq.py Show resolved Hide resolved
pennylane_qiskit/qiskit_device.py Show resolved Hide resolved
pennylane_qiskit/runtime_devices.py Show resolved Hide resolved
pennylane_qiskit/runtime_devices.py Outdated Show resolved Hide resolved
tests/test_ibmq.py Outdated Show resolved Hide resolved
Copy link
Contributor

@rmoyard rmoyard left a comment

Choose a reason for hiding this comment

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

Thanks @timmysilv, great job 🥇 I have left a couple of comments. Sorry that you had to rework the test IBMQ test suite.

doc/devices/ibmq.rst Show resolved Hide resolved
doc/requirements.txt Show resolved Hide resolved
pennylane_qiskit/aer.py Show resolved Hide resolved
pennylane_qiskit/ibmq.py Outdated Show resolved Hide resolved
pennylane_qiskit/ibmq.py Show resolved Hide resolved
pennylane_qiskit/runtime_devices.py Show resolved Hide resolved
pennylane_qiskit/runtime_devices.py Outdated Show resolved Hide resolved
pennylane_qiskit/runtime_devices.py Show resolved Hide resolved
requirements.txt Show resolved Hide resolved
@rmoyard rmoyard merged commit e02c2d9 into fix-vqe-runtime May 4, 2023
@rmoyard rmoyard deleted the remove-deprecated-code branch May 4, 2023 21:02
timmysilv added a commit that referenced this pull request May 5, 2023
* remove VQE program/uploader, use qiskit VQE

* black

* add qiskit-ibm-runtime to doc requirements

* update docs

* changelog

* activate test; try to load token from env

* update version stuff for bugfix release

* Update code that is pending deprecation (#301)

* add pytest.ini to fail on deprecation warnings

* fix deprecation warnings from import while running tests

* use the new runtime service

* fix up ibmq tests

* update docs

* replace remaining qiskit.providers.aer stuff from docs

* changelog

* fix tracker and tests; ensure correct meta-keys are received

* black

* add runtime_secs to IBMQDevice

* fix quasi_dists in Sampler.generate_samples
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.

2 participants