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

Qiskit / qiskit / 7051979172
87%
main: 88%

Build:
Build:
LAST BUILD BRANCH: add-pauli-lindblad-map-generators-15228
DEFAULT BRANCH: main
Ran 30 Nov 2023 08:56PM UTC
Jobs 1
Files 984
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

30 Nov 2023 08:35PM UTC coverage: 87.431% (+0.02%) from 87.414%
7051979172

push

github

web-flow
Track runtime variables in control-flow builders (#10977)

* Track runtime variables in control-flow builders

This adds support for all the new classical runtime variables through
the control-flow builder interface.  In particular, most usefully it
automatically manages the scoping rules for new declarations and inner
variable accesses, and ensures that its built scopes automatically close
over any variables used within them (including making sure nested scopes
do the same thing).

The builder API is factored out a little into an explicit interface
object, with `QuantumCircuit` getting an explicit implementation of
that.  This is done because the number of separate API methods we would
have needed to pass around / infer was getting overly large, and this
allows us to just use standard virtual dispatch to automatically do the
right thing.

Python doesn't have a way to have an object implement an
interface other than by structural (duck) typing, so to avoid name
leakage and collisions, we instead make `QuantumCircuit`'s
implementation a friend class that handles the inner state on its
behalf.

Not everything control-flow-builder related is factored out into the API
because it didn't seem overly useful to do this, especially when the
overridden behaviour would just have been to throw exceptions.

* :us:

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* More descriptive variable name

* Remove superfluous private statement

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

182 of 188 new or added lines in 2 files covered. (96.81%)

9 existing lines in 2 files now uncovered.

59904 of 68516 relevant lines covered (87.43%)

275973.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7051979172.1 30 Nov 2023 08:56PM UTC 0
87.43
GitHub Action Run
Source Files on build 7051979172
Detailed source file information is not available for this build.
  • Back to Repo
  • a79e8796 on github
  • Prev Build on gh-readonly-queue/main/pr-11348-ba161e92940ebed8fdf3f086a42616851c3c57ce (#7047993505)
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