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

Qiskit / qiskit / 35887581685
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: mergify/bp/stable/2.6/pr-17159
DEFAULT BRANCH: main
Ran 23 Sep 2026 04:48PM UTC
Jobs 1
Files 969
Run time 4min
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

23 Sep 2026 04:15PM UTC coverage: 87.901% (+0.02%) from 87.88%
35887581685

push

github

web-flow
Add Dim::Bound variant and reorganize the tensor module (#16914)

* Bound the dynamic axes of a tensor type

A shape axis is either a fixed size or a size bounded above, in the manner of
StableHLO's bounded dynamism, so storage can be sized from the bound while
the size actually used stays a run-time fact. This replaces an axis named for
a later pass to resolve.

Type-level rules move to tensor::rules, where promotion, require_static and
broadcast_dims answer what an operation would do to a pair of types with no
values in hand. broadcast_dims requires a true size per axis pair rather than
over whole shapes, so a bounded axis forwards through a size of 1 and is
rejected only where it meets a size it would have to be compared against. It
shares the right-aligned axis pairing with broadcast_shape, so the two cannot
disagree about which axes meet.

A Dim renders as 4000 or <=2 and the two new TensorError variants render
shapes through it, so an error over declared shapes reads properly. A Tensor
compares for equality directly, and TensorType::concrete_shape routes through
require_static so that one walk over a shape answers both questions.

* Give the tensor type domain a file per concept

A mod.rs is a door, not a definition site, and tensor/mod.rs had grown to
1,100 lines of definitions. Move the type side out of it: dtype.rs for the
element type, tensor_type.rs for a shape of per-axis sizes and the type that
pairs one with a dtype, and error.rs for the domain's error set.

error.rs rather than folding TensorError into the tensor value: of its four
variants the value side constructs only DTypeMismatch, and the other three
belong to broadcasting and to the type-level rules, so no single concept owns
the enum. fmt_shape becomes pub(super) for it, and three doc links become
qualified now that Tensor and rules are no longer in the same scope.

Pure movement: the tests move with the items they cover and the test count is
unchanged.

* Reduce the tensor modul... (continued)

913 of 954 new or added lines in 7 files covered. (95.7%)

2 existing lines in 1 file now uncovered.

119162 of 135564 relevant lines covered (87.9%)

964957.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
36
93.77
crates/providers/src/tensor/value.rs
4
96.4
crates/providers/src/tensor/tensor_type.rs
1
99.41
crates/providers/src/tensor/dtype.rs

Coverage Regressions

Lines Coverage ∆ File
2
92.29
0.51% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 35887581685.1 23 Sep 2026 04:48PM UTC 969
87.9
GitHub Action Run
Source Files on build 35887581685
  • Tree
  • List 969
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35887581685
  • b1e058ce on github
  • Prev Build on gh-readonly-queue/main/pr-16912-6e96f7318ad2cf69701b04c50ae34d683d41f1ca (#35887579521)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc