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

Qiskit / qiskit / 14627759099
88%

Build:
DEFAULT BRANCH: main
Ran 23 Apr 2025 09:06PM UTC
Jobs 1
Files 802
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

23 Apr 2025 08:06PM UTC coverage: 87.887% (-0.07%) from 87.954%
14627759099

push

github

web-flow
Use `OnceLock` to cache a `NormalOperation` in `Target` (#13995)

* Add: Use `OnceLock` to cache a `NormalOperation` in `Target`
- As we plan to use `PackedOperation` to add instructions to a `Target` in Rust. We should not require having a python instance exists within. The following commits fix that by ensuring that a python instruction is not required, and if so it can be built based on a `PackedOperation`'s internal data.
- This should not have any visible effects on the current implementations, but can be proven to work via the added unit-tests.

* Fix: Address review comments.
- Remove `From` implementations in favor of `from_packed_operation` in both `TargetOperation`, and `NormalOperation`.

* Test: Mover rust conversion testing to Python

* Update crates/accelerate/src/target_transpiler/mod.rs

Co-authored-by: Kevin Hartman <kevin@hart.mn>

* Fix: Propagate `Result` in `create_py_op`

* Fix: Store a `PyResult` for the cached gate

---------

Co-authored-by: Kevin Hartman <kevin@hart.mn>

28 of 66 new or added lines in 1 file covered. (42.42%)

29 existing lines in 2 files now uncovered.

74245 of 84478 relevant lines covered (87.89%)

435693.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
38
78.63
-3.25% crates/accelerate/src/target_transpiler/mod.rs

Uncovered Existing Lines

Lines Coverage ∆ File
5
91.48
-0.75% crates/qasm2/src/lex.rs
24
96.22
-1.85% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 14627759099.1 23 Apr 2025 09:06PM UTC 802
87.89
GitHub Action Run
Source Files on build 14627759099
  • Tree
  • List 802
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14627759099
  • b35a7099 on github
  • Prev Build on gh-readonly-queue/main/pr-13919-d2db2784a9ff41520c52dd5cc9b266c3b853fc2f (#14619449066)
  • Next Build on main (#14637349697)
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