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

Qiskit / qiskit-terra / 29726
87%

Build:
DEFAULT BRANCH: main
Ran 13 May 2021 03:56PM UTC
Jobs 1
Files 852
Run time 3min
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

pending completion
29726

push

travis-ci-com

web-flow
Add qpy serialization format (#5578)

* Add qpy serialization format

This commit adds a portable lightweight binary serialization format that
is intended to represent Qiskit's circuit object. It is intended to be a
forward compatible format that will work with all future versions of
qiskit. The intent here is to provide a good alternative to pickle
(which qobj and qasm are not) which is commonly used but isn't a good
choice for both security and cross-platform and cross-version support
because pickle isn't really intended to be a general serialization
solution.

* Reduce gate name string padding

* Fix parameter parsing

* Fix docs

* Fix numpy parameters and add tests

* Add pointless docstrings and fix lint

* Add support for custom and opaque gates

* Add Parameter support

* Add support for conditions on instructions

* Fix lint

* Speedup deserialization with _append

* Add support for multiple circuits

* Use a more compact json representation for circuit metadata

* Expand usage documentation

* Fix typo in docs

* Apply suggestions from code review

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Bruno Schmitt <bruno.schmitt@epfl.ch>

* Update documentation and add warning about being experimental

* Clean up dump() docstring about compatibility

* Avoid fixed width strings

* Use a 16bit size for strings

* Make registers a subset of circuit.*bits

In keeping with compability with changes to the circuit model made in
0.17.0 registers in qpy are now a subset of contiguous indices in the
bit lists for a circuit. This removes the need to access qubit.index
and qubit.name on arguments to instructions (which raises a deprecation
warning). This also should be backwards compatible for terra < 0.17.0
there just isn't any potential for an index without a register in the
circuit for terra < 0.17.0.

* Remove doc comment about fixed width strings

* Add parameter express... (continued)

43569 of 53340 relevant lines covered (81.68%)

0.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29726.1 (PYTHON="coverage run --source qiskit --parallel-mode" QISKIT_TEST_CAPTURE_STREAMS=1) 13 May 2021 03:56PM UTC 0
81.68
Travis Job 29726.1
Source Files on build 29726
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #29726
  • 0533fb3d on github
  • Prev Build on main (#29716)
  • Next Build on main (#29731)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc