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

Qiskit / qiskit / 27041447297
87%

Build:
DEFAULT BRANCH: main
Ran 05 Jun 2026 10:06PM UTC
Jobs 1
Files 946
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

05 Jun 2026 09:15PM UTC coverage: 87.44% (-0.008%) from 87.448%
27041447297

push

github

web-flow
Consolidate `Target` mappings (#15349)

* Initial: Clean up target mappings
The following commits remove the redundant mappings `gate_name_map` and `angle_bounds` in favor of one mapping with a struct that contains all of that data. This results in a much lighter `Target` going from 504 (0x1F8) bytes to 288 bytes.

The new struct called `TargetProperties` is currently internal-only. And contains three fields.
- `properties` containing the mapping of the qargs and instruction properties (originally the `gate_map`).
- `instruction` containing the `TargetOperation` (originally the `gate_name_map`).
- `angle_bounds`: Optionally containing the angle bounds for the ``Target`` (originally `angle_bounds`.)

This is the first effort to more efficiently use the ``Target`` in Rust with upcoming efforts focusing on its behavior on Python.

* Fix: Remove clippy unused

* Fix: Address review comments
- Replace ambiguous type declarations with more explicit types.
    - `PropsMap` to `TargetIndexMap<K,V>` == `IndexMap<K,V,RandomState>`.
- Make `TargetProperties` private.
- Remove `_raw_operation_from_name`.
- Use `IndexMap::with_capacity_and_hasher` during deserialization.
- Revert overusage of `&str`.

* Refactor: Remove type alias.
- In cases where the alias of `IndexMap<String, TargetProperties, ahash::RandomState>` looked too long, I matched it to the `Index` trait whose return `Output` value is already of said type.

* Fix: unused Barrier import in test_target.py

128 of 160 new or added lines in 2 files covered. (80.0%)

31 existing lines in 4 files now uncovered.

109284 of 124981 relevant lines covered (87.44%)

957572.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
31
81.96
-0.72% crates/transpiler/src/target/mod.rs
1
94.46
0.0% qiskit/transpiler/target.py

Coverage Regressions

Lines Coverage ∆ File
18
96.68
-0.95% crates/qasm2/src/parse.rs
9
81.96
-0.72% crates/transpiler/src/target/mod.rs
3
92.8
1.03% 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 27041447297.1 05 Jun 2026 10:06PM UTC 946
87.44
GitHub Action Run
Source Files on build 27041447297
  • Tree
  • List 946
  • Changed 6
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27041447297
  • 61e3ca01 on github
  • Prev Build on gh-readonly-queue/main/pr-15567-d208387eb226ff4eb0ce6a0e989f3a104650a310 (#27031311489)
  • Next Build on main (#27135489154)
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