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

Qiskit / qiskit / 7720058296
88%

Build:
DEFAULT BRANCH: main
Ran 31 Jan 2024 02:07AM UTC
Jobs 1
Files 910
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

31 Jan 2024 12:36AM UTC coverage: 89.555% (-0.01%) from 89.566%
7720058296

push

github

web-flow
Add version flag to qpy dump (#11644)

* Add version flag to qpy dump

This commit adds a new keyword argument to the qpy.dump() function which
is used to specify a compatibility version of QPY which is the latest
version for the 0.45 and 0.46 version. This basically adds a compatibility
mode for generating QPY files that returns a fixed QPY version that
enables the 0.45 and 0.46 release to load the QPY files generated with
the 1.0 release. The default output doesn't change and dump() will
always return the latest QPY format version by default as this is the
version that gets all the bugfixes and is kept up to date with the
QuantumCircuit class.

As of this commit the compatibility version and the latest version are
the same, both at version 10. However, this flag is being added so that
the interface exists for when we inevitably need to update the QPY
version field for any release in the 1.x major version series. There are
potential PRs in the 1.0 release series that will bump the latest QPY
version to 11 which will change this and those PRs will need to factor
this in when they change the format.

* Export current and compatibility version from qiskit.qpy

* Update test to use QPY_COMPATIBILITY_VERSION

Co-authored-by: Will Shanks <willshanks@us.ibm.com>

* Revise support policy to be a range not just min/max versions

* Add attribute documentation

* Remove hardcoded reference to current QPY_VERSION

---------

Co-authored-by: Will Shanks <willshanks@us.ibm.com>

59493 of 66432 relevant lines covered (89.55%)

215529.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7720058296.1 31 Jan 2024 02:07AM UTC 0
89.55
GitHub Action Run
Source Files on build 7720058296
Detailed source file information is not available for this build.
  • Back to Repo
  • 3b82fead on github
  • Prev Build on gh-readonly-queue/main/pr-11679-3773444813544914269f31ecd6618a88f2ac9dbe (#7718710183)
  • Next Build on main (#7720383234)
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