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

Qiskit / qiskit / 8909651178
90%
main: 88%

Build:
Build:
LAST BUILD BRANCH: rust_qpy
DEFAULT BRANCH: main
Ran 01 May 2024 01:15PM UTC
Jobs 1
Files 829
Run time 2min
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

01 May 2024 12:59PM UTC coverage: 89.539% (+0.02%) from 89.52%
8909651178

push

github

web-flow
Add representation of `expr.Var` to `DAGCircuit` (#12204)

* Add representation of `expr.Var` to `DAGCircuit`

This adds basic support for `Var`s to `DAGCircuit`, enabling the base
representation using the same wire structure used for clbits.  This is
known to be an inefficient representation of the dataflow for clbits,
which can be read multiple times without implying an order between those
operations (unlike qubits for which reads and writes are more naturally
linked).  We're using this simpler representation to make a better
initial MVP; optimising the data-flow representation would come as part
of a larger effort within the `DAGCircuit`.

This commit adds support in `DAGCircuit` for:

- representation of `Var` nodes
- appending all operations that might contain `Var` nodes to the DAG and
  updating the wire structure (including control-flow ops and stores)
- equality checking of DAGs with `Var`s (and so enables
  `QuantumCircuit.__eq__` as well)
- `DAGCircuit.copy_empty_like` with `Var`s
- the DAG/circuit converters

The other methods in `DAGCircuit` that might need to be aware of `Var`
nodes will be handled separately.

* Expand test coverage

* Fix copy/paste error

127 of 129 new or added lines in 4 files covered. (98.45%)

4 existing lines in 1 file now uncovered.

61492 of 68676 relevant lines covered (89.54%)

217858.21 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
92.86
-2.14% qiskit/circuit/controlflow/control_flow.py
1
91.68
0.77% qiskit/dagcircuit/dagcircuit.py

Uncovered Existing Lines

Lines Coverage ∆ File
4
92.37
0.0% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 8909651178.1 01 May 2024 01:15PM UTC 829
89.54
GitHub Action Run
Source Files on build 8909651178
  • Tree
  • List 829
  • Changed 35
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c60a1ed6 on github
  • Prev Build on gh-readonly-queue/main/pr-12108-a65c9e628c3932b5984c13acb0a35d0645567901 (#8909615048)
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