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

Qiskit / qiskit / 6628507089
87%
main: 88%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-16153-1680baf652bb3e9063f2f085dc9c89417ffe370c
DEFAULT BRANCH: main
Ran 24 Oct 2023 03:22PM UTC
Jobs 1
Files 1260
Run time 40s
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

24 Oct 2023 01:13PM UTC coverage: 87.261% (-0.002%) from 87.263%
6628507089

push

github

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

* Emit a descriptive error when the QPY version is too new

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 (the version used by Qiskit 0.45.x) with qiskit-terra
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.
```

In addition to fix CI on the stable/0.25 branch this commit puts a hard
cap on the versions we test backwards compatibility with. Previously the
script ran with all tagged releases of Qiskit, but with the recent
release of the 0.45.0rc1 tag we no longer can do that. The QPY format
emitted by 0.45.0rc1 is not something that the 0.25.x release series can
read.

* Fix copy paste error

* Fix attribute access name from named tuple

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

74161 of 84988 relevant lines covered (87.26%)

61041.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6628507089.1 24 Oct 2023 03:21PM UTC 0
87.26
GitHub Action Run
Source Files on build 6628507089
Detailed source file information is not available for this build.
  • Back to Repo
  • aca76ccc on github
  • Prev Build on gh-readonly-queue/stable/0.25/pr-11047-5d1e7e546b006e90dad2a8b2db37aaa4848db569 (#6575065488)
  • Next Build on stable/0.25 (#6633071476)
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