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

Qiskit / qiskit / 26909282146
87%

Build:
DEFAULT BRANCH: main
Ran 03 Jun 2026 08:26PM 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.471% (-0.9%) from 88.34%
26909282146

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%)

25 existing lines in 3 files now uncovered.

108913 of 124513 relevant lines covered (87.47%)

961235.69 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
11
91.52
-2.06% crates/qasm2/src/lex.rs
10
73.93
-0.41% crates/circuit/src/parameter/symbol_expr.rs
4
88.0
-0.37% crates/providers/src/store.rs
Jobs
ID Job ID Ran Files Coverage
1 26909282146.1 03 Jun 2026 08:26PM UTC 943
87.47
GitHub Action Run
Source Files on build 26909282146
  • Tree
  • List 943
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26909282146
  • 005fe52d on github
  • Prev Build on gh-readonly-queue/main/pr-16364-64cb86c0f48b0caefa738a4e4890c2ef1ab8cc06 (#26897534336)
  • Next Build on main (#26946691459)
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