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

Qiskit / qiskit / 26908228715
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: python-custom
DEFAULT BRANCH: main
Ran 03 Jun 2026 08:02PM UTC
Jobs 1
Files 943
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

03 Jun 2026 07:33PM UTC coverage: 87.474% (-0.9%) from 88.34%
26908228715

push

github

web-flow
Refactor ProgramNode::call to flatten+call_flat+unflatten (#16298)

* Refactor ProgramNode to flat call_flat + DataTree flatten/unflatten helpers

Split the ProgramNode trait so implementations only define
`call_flat(args: &[Tensor]) -> Result<Vec<Tensor>, _>` while a blanket
ProgramNodeExt provides the DataTree-shaped `call(args: &DataTree<Tensor>)`
on top. Adds the supporting DataTree machinery (`flatten_against`,
`unflatten`, `map_leaves`, `into_leaves`, `TreeMatchError`,
`ArityMismatch`) and structured call errors (`CallInputError`, `CallError`,
`MissingCallError`). Store is rewritten on top of `call_flat` and stores
its tensors as a flat `Vec<Tensor>` aligned with `output_types`.

* Fix double iteration in unflatten()

* three small changes from code review

* inlined helper functions into the functions they help

* write a custom iterator struct for into_leaves()

* add docstring for IntoLeaves::stack

220 of 250 new or added lines in 3 files covered. (88.0%)

21 existing lines in 4 files now uncovered.

108916 of 124513 relevant lines covered (87.47%)

958943.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
25
10.71
-89.29% crates/providers/src/program_node.rs
3
89.47
3.91% crates/providers/src/data_tree.rs
2
88.0
-0.37% crates/providers/src/store.rs

Coverage Regressions

Lines Coverage ∆ File
12
97.15
-0.95% crates/qasm2/src/parse.rs
4
88.0
-0.37% crates/providers/src/store.rs
4
92.8
-0.77% crates/qasm2/src/lex.rs
1
91.03
0.0% crates/circuit/src/parameter/parameter_expression.rs
Jobs
ID Job ID Ran Files Coverage
1 26908228715.1 03 Jun 2026 08:01PM UTC 943
87.47
GitHub Action Run
Source Files on build 26908228715
  • Tree
  • List 943
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26908228715
  • 005fe52d on github
  • Prev Build on gh-readonly-queue/main/pr-16364-64cb86c0f48b0caefa738a4e4890c2ef1ab8cc06 (#26897534336)
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