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

Qiskit / qiskit / 27040535062
87%
main: 88%

Build:
Build:
LAST BUILD BRANCH: bindgen-add-ctypes-union
DEFAULT BRANCH: main
Ran 05 Jun 2026 09:46PM 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.446% (-0.002%) from 87.448%
27040535062

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

15 existing lines in 4 files now uncovered.

109291 of 124981 relevant lines covered (87.45%)

959217.46 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
9
81.96
-0.72% crates/transpiler/src/target/mod.rs
4
92.03
0.26% crates/qasm2/src/lex.rs
1
74.21
0.29% crates/circuit/src/parameter/symbol_expr.rs
1
93.82
-0.24% crates/qasm2/src/expr.rs
Jobs
ID Job ID Ran Files Coverage
1 27040535062.1 05 Jun 2026 09:46PM UTC 946
87.45
GitHub Action Run
Source Files on build 27040535062
  • Tree
  • List 946
  • Changed 5
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27040535062
  • 61e3ca01 on github
  • Prev Build on gh-readonly-queue/main/pr-15567-d208387eb226ff4eb0ce6a0e989f3a104650a310 (#27031311489)
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