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

Qiskit / qiskit / 15593047053
88%

Build:
DEFAULT BRANCH: main
Ran 11 Jun 2025 07:19PM UTC
Jobs 1
Files 827
Run time 315min
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

11 Jun 2025 06:21PM UTC coverage: 87.987% (-0.02%) from 88.004%
15593047053

push

github

web-flow
Add more `DAGCircuit::copy_empty_like`-related methods (#14496)

* Add capacity-setting `DAGCircuit::copy_empty_like` constructors

`petgraph` currently does not expose any APIs to expand the capacity of
the `Vec`s backing `Graph` after construction.  This motivates allowing
`copy_empty_like` to accept capacities.

* Add physical-circuit variant of `DAGCircuit::copy_empty_like`

The new `DAGCircuit::physical_empty_like_with_capacity` is similar in
spirit to `copy_empty_like_with_capacity`, except that the output is
defined over a certain number of physical qubits.  This operation is
common (and error-prone) in layout passes, so is centralised here.

* Add `DAGCircuit::qubitless_empty_like_with_capacity`

This is the base method of all the other `*_empty_like_*` methods.  We
don't need the full generality of allowing other classical data to be
present or not; we don't know of any uses of that within the library.

* Restore interner-copying behaviour

* Include comment on Interner copying

* Make `DAGCircuit::name` and `metadata` public

These are logically entirely public from Python space and have no
data-coherence troubles.  This allows Rust to set them as well.

* Add Rust-space test of `physical_empty_like`

123 of 134 new or added lines in 1 file covered. (91.79%)

25 existing lines in 4 files now uncovered.

83136 of 94487 relevant lines covered (87.99%)

517212.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
11
86.27
0.08% crates/circuit/src/dag_circuit.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.23
-0.23% crates/qasm2/src/expr.rs
1
94.57
0.0% crates/transpiler/src/passes/unitary_synthesis.rs
5
92.98
-0.5% crates/qasm2/src/lex.rs
18
96.68
-1.39% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 15593047053.1 11 Jun 2025 07:19PM UTC 827
87.99
GitHub Action Run
Source Files on build 15593047053
  • Tree
  • List 827
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15593047053
  • 9d3e6472 on github
  • Prev Build on gh-readonly-queue/main/pr-14511-7bb30c1d00d8b37d0521d6fdf2d61ad8afbb415f (#15582299648)
  • Next Build on main (#15604509669)
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

© 2025 Coveralls, Inc