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

Qiskit / qiskit-terra / 5604429769
86%
main: 87%

Build:
Build:
LAST BUILD BRANCH: sparsepauliop_default_init
DEFAULT BRANCH: main
Ran 19 Jul 2023 10:16PM UTC
Jobs 1
Files 1266
Run time 18s
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
5604429769

push

github

web-flow
Add `Expr` support to QPY for conditions and targets (#10392)

* Add `Expr` support to QPY for conditions and targets

This adds support to QPY for the current `Expr` nodes, for *all*
instruction parameters and conditions.  The `Expr` tree is written out
to the file in a sort of forwards Polish notation; each node has a type
code and header, followed by a type-code-specific number of `Expr`
children.

While only `IfElseOp.condition`, `WhileLoopOp.condition` and
`SwitchCaseOp.target` are allowed to have these nodes in Terra's data
model right now, the QPY serialisation does not need to have this
arbitrary restriction, and it's much easier just to write the general
case.

The backwards-compatibility guarantees of QPY are now brought to bear on
the `Unary.Op` and `Binary.Op` enumeration values. They were already
marked in the source code as their values needing to be part of the
stable public interface, and their use in things like QPY is the reason
why.

* Improve documentation of `EXPRESSION` payload

* Factor out magic numbers from discriminator sizes

241 of 241 new or added lines in 5 files covered. (100.0%)

72789 of 84579 relevant lines covered (86.06%)

58785.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5604429769.1 19 Jul 2023 10:16PM UTC 0
86.06
GitHub Action Run
Source Files on build 5604429769
Detailed source file information is not available for this build.
  • Back to Repo
  • 02886d0e on github
  • Prev Build on gh-readonly-queue/main/pr-10400-4a758b68d13d0c0a5f94020621a89ebd44af0ee1 (#5602965717)
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