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

Qiskit / qiskit / 15448269763
88%

Build:
DEFAULT BRANCH: main
Ran 04 Jun 2025 05:34PM UTC
Jobs 1
Files 824
Run time 23min
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

04 Jun 2025 04:40PM UTC coverage: 87.925% (+0.02%) from 87.907%
15448269763

push

github

web-flow
Initial `Target` C API (#14248)

* Initial: Enable a C API to build and modify a Target

* Add: `add_instruction` function

* Add: More methods to `Target` C API
- Add provisional `PropertyMap` to represent the mapping of `qargs : InstructionProperties` before adding it to the `Target`.
- `InstructionProperties`:
    - free.
- `Target`:
    - `update_instruction_prop`
    - `operation_names`
    - `physical_qubits`
    - `non_global_operation_names`.
    - `operation_names_for_qargs`.
    - `qargs_for_operation_names`.
    - `qargs`.
    - `instruction_supported`.
    - `contains_key`.

* Add: C unit test
- Add getter methods for `InstructionProperties`.
- Add `length` method for `PropertyMap`.
- Add name maping for `PropertyMap`.

* Fix: Add `IndexMap` and `Ahash` dependencies to qiskit_cext.
- Add `get` method to `Target`.
- Add missing methods to `PropertyMap`.
- Fix methods returning arrays to C by adding a a forget statement to prevent pointer from being destroyed.
- Add getter methods to the `C` api of target.
- Add helper function to parse qargs.

* Test: Add tests to update properties and get non global names.

* Add `operation_names_for_qargs` test case.
- Move `print_qargs` helper to top of module.

* Add: `qargs_for_operation_names` test case
- Add helper method to compare arrays.
- Fix print method for qargs.

* Docs: Add first wave of docstrings.

* Fix: Incorrect typing in `test_target.c`

* Fix: Add missing docstrings.
- Use correct type of pointers for outputs,

* Lint: Fix c-format

* Fix: Remove option from `qarg_gate_map`.
- Use IndexSet to preserve insertion order to avoid sorting in the C API.

* Test: Add `qargs` test.

* FIx: Add missing docstrings for remainign tests

* Fix: Type errors in MacOS

* Fix: Undo extra changes in the target.
- Sort the string arrays obtained from the target in C during tests.
- Remove `Copy` from `InstructionProperties`.
- Add helper method to sort string array outputs, coming from the Target.

* Ad... (continued)

276 of 316 new or added lines in 5 files covered. (87.34%)

4 existing lines in 2 files now uncovered.

81671 of 92887 relevant lines covered (87.93%)

524796.35 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
31.58
31.58% crates/cext/src/exit_codes.rs
6
84.9
0.06% crates/transpiler/src/target/mod.rs
32
87.92
crates/cext/src/transpiler/target.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.57
0.0% crates/transpiler/src/passes/unitary_synthesis.rs
3
92.73
0.0% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 15448269763.1 04 Jun 2025 05:34PM UTC 824
87.93
GitHub Action Run
Source Files on build 15448269763
  • Tree
  • List 824
  • Changed 9
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15448269763
  • d3ffc294 on github
  • Prev Build on gh-readonly-queue/main/pr-14513-1e00897c5cb5ad9474bcd4643b899c4bab4ef6f5 (#15446177575)
  • Next Build on main (#15449609796)
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