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

Qiskit / qiskit / 6667910491
88%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2023 02:08PM UTC
Jobs 1
Files 1265
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

27 Oct 2023 12:12PM UTC coverage: 86.904% (-0.03%) from 86.931%
6667910491

push

github

web-flow
Emit a descriptive error when the QPY version is too new (#11074)

This commit updates the qpy load() function to ensure we are raising a
descriptive error message when a user attempts to load a qpy version
that's not supported by this version of qiskit. Previously it would
fail but with a hard to understand internal error message which was just
confusing and not helpful. For example, when trying to load a QPY
version 10 payload with qiskit 0.25.2 (which only supported up to
version 9) it would raise an error message like:

```
Invalid payload format data kind 'b'p''."
```

which doesn't tell you anything meaningful unless you are intimately
familiar with the QPY file format and how the load() function works.
With this commit it now checks if the version number is supported
immediately and if it's too new it will raise an error message that says
exactly that. So in the above scenario instead of that error message it
will say:

```
The QPY format version being read, 10, isn't supported by this Qiskit
version. Please upgrade your version of Qiskit to load this QPY payload.
```

2 of 2 new or added lines in 1 file covered. (100.0%)

73941 of 85084 relevant lines covered (86.9%)

91800.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6667910491.1 27 Oct 2023 02:08PM UTC 0
86.9
GitHub Action Run
Source Files on build 6667910491
Detailed source file information is not available for this build.
  • Back to Repo
  • 0de8730c on github
  • Prev Build on main (#6661399441)
  • Next Build on main (#6668044327)
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

© 2026 Coveralls, Inc