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

Qiskit / qiskit / 10098877949
90%
main: 88%

Build:
Build:
LAST BUILD BRANCH: rust_qpy
DEFAULT BRANCH: main
Ran 25 Jul 2024 06:03PM UTC
Jobs 1
Files 856
Run time 3min
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

25 Jul 2024 05:41PM UTC coverage: 89.726% (-0.2%) from 89.955%
10098877949

push

github

web-flow
Adding `Target` and `InstructionProperties` representations to rust (#12292)

* Initial: Add `Target` class to `_accelerate`
- Add `Target` class to test mobility between Rust and Python.
- Add `add_instruction` method to test compatibility with instructions.

* Fix: Remove empty property check
- Property check caused most cases to panic.
- Will be commented out and restored at a later time.

* Add: Instructions property
- Instructions property returns all added to the target.
- Similar behavior to source.

* Chore: comments and deprecated methods
- Add comments to instruction property.
- Use new_bound for new PyDicts.

* Chore: Remove redundant code
- Remove redundant transformation of PyObject to PyTuple.
- Remove debugging print statement.

* Add: `InstructionProperties` class and type checkers
- Add `InstructionProperties` class to process properties in rust.
- Add `is_instance` and `is_class` to identify certain Python objects.
- Modify logic of `add_instruction` to use class check.
- Other tweaks and fixes.

* Add: Setter and Getter for calibration in `InstructionProperty`

* Add: `update_instruction_properties` to Target.

* Add: Update_from_instruction_schedule_map
- Partial addition from Target.py\
- Introduction of hashable qarg data structure.
- Other tweaks and fixes.

* Add: Complete `update_from_instruction_schedule_map1
- Complete missing procedures in function.
- Rename `Qargs` to `HashableVec`.
- Make `HashableVec` generic.
- Separate `import_from_module_call` into call0 and call1.
- Other tweaks and fixes.

* Add: instruction_schedule_map property.
- Remove stray print statements.
- Other tweaks and fixes.

* Fix: Key issue in `update_from_instruction_schedule_map`
- Remove all unsafe unwraps

* Fix: Use PyResult Value for void functon
- Update `update_from_instruction_schedule_map to use PyResult and '?' operator.
- Use Bound Python objects whenever possible.
- Other tweaks and fixes.

* Add: Python wrapping for Target
- Add tempora... (continued)

769 of 1029 new or added lines in 7 files covered. (74.73%)

12 existing lines in 4 files now uncovered.

66680 of 74315 relevant lines covered (89.73%)

305294.37 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
50.0
crates/accelerate/src/target_transpiler/errors.rs
4
93.48
-0.25% qiskit/transpiler/target.py
10
62.96
crates/accelerate/src/target_transpiler/instruction_properties.rs
96
57.14
crates/accelerate/src/target_transpiler/nullable_index_map.rs
147
79.72
crates/accelerate/src/target_transpiler/mod.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.02
-0.24% crates/qasm2/src/expr.rs
2
88.39
-0.36% qiskit/transpiler/passes/synthesis/unitary_synthesis.py
3
93.13
0.25% crates/qasm2/src/lex.rs
6
97.61
-0.46% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 10098877949.1 25 Jul 2024 06:03PM UTC 856
89.73
GitHub Action Run
Source Files on build 10098877949
  • Tree
  • List 856
  • Changed 44
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 898fdec4 on github
  • Prev Build on gh-readonly-queue/main/pr-12815-250acc3a42e137e5e094ea7ab9dd7558556226cf (#10098159364)
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