• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit-ibm-runtime / 7790443977
83%

Build:
DEFAULT BRANCH: main
Ran 05 Feb 2024 08:36PM UTC
Jobs 12
Files 184
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Feb 2024 08:27PM UTC coverage: 79.067% (+9.8%) from 69.287%
7790443977

push

github

web-flow
Handle qpy serialization across versions and delete vendored fork (#1377)

* Handle qpy serialization across versions and delete vendored fork

For the next qiskit-ibm-runtime release it is desired to have it support
both Qiskit 0.45.x/0.46.x and Qiskit 1.0.0. To do this with QPY it means
we need to emit a fixed qpy version of 10 as that's currently the
maximum version the server side can parse. The easiest way to manage
this across versions is actually to rely on Qiskit's qpy module again.
Starting in Qiskit 1.0.0 the qiskit.qpy.dump() function a new kwarg,
version exists to specify the version of qpy emitted. We can use this
to control the rollout of QPY format versions as the server side is
updated. For right now this is fixed to version 10 which is the same as
the QPY format version emitted by 0.45.x and 0.46.0. Because the
versions are the same we can just use qiskit's qpy module moving forward
as either we're on qiskit 0.45.x/0.46.x and will emit version 10 (as there
is no option) or we're on >=1.0.0 and we explicitly set the qpy version
to one that's compatible with the server side.

The qpy internals usage to serialize parameters and parameter
expressions are left in place (although expanded on to include #1355 for
parameter expressions) as an alternative needs to be considered for
this. It is not a good idea to rely on qpy internals and explicitly
private functions to do partial serialization.

This commit also deletes the vendored fork as it's never been included
in a released version of qiskit-ibm-runtime and nothing is using it
anymore.

Related to: #1375

* Fix lint

* Fix lint again

4850 of 6134 relevant lines covered (79.07%)

9.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.9-macOS-latest - 7790443977.1 05 Feb 2024 08:37PM UTC 184
79.04
GitHub Action Run
2 unit-tests_python3.8-ubuntu-latest - 7790443977.2 05 Feb 2024 08:36PM UTC 184
79.02
GitHub Action Run
3 unit-tests_python3.9-ubuntu-latest - 7790443977.3 05 Feb 2024 08:36PM UTC 184
79.04
GitHub Action Run
4 unit-tests_python3.10-ubuntu-latest - 7790443977.4 05 Feb 2024 08:36PM UTC 184
79.05
GitHub Action Run
5 unit-tests_python3.8-macOS-latest - 7790443977.5 05 Feb 2024 08:38PM UTC 184
79.02
GitHub Action Run
6 unit-tests_python3.11-ubuntu-latest - 7790443977.6 05 Feb 2024 08:36PM UTC 184
79.05
GitHub Action Run
7 unit-tests_python3.10-macOS-latest - 7790443977.7 05 Feb 2024 08:37PM UTC 184
79.05
GitHub Action Run
8 unit-tests_python3.11-macOS-latest - 7790443977.8 05 Feb 2024 08:38PM UTC 184
79.05
GitHub Action Run
9 unit-tests_python3.9-windows-latest - 7790443977.9 05 Feb 2024 08:38PM UTC 184
76.7
GitHub Action Run
10 unit-tests_python3.10-windows-latest - 7790443977.10 05 Feb 2024 08:38PM UTC 184
76.72
GitHub Action Run
11 unit-tests_python3.8-windows-latest - 7790443977.11 05 Feb 2024 08:40PM UTC 184
76.69
GitHub Action Run
12 unit-tests_python3.11-windows-latest - 7790443977.12 05 Feb 2024 08:39PM UTC 184
76.72
GitHub Action Run
Source Files on build 7790443977
  • Tree
  • List 184
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 482a9f0f on github
  • Prev Build on main (#7789077849)
  • Next Build on main (#7790886756)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc