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

Qiskit / qiskit / 17434703469
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 03 Sep 2025 01:47PM UTC
Jobs 1
Files 827
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

03 Sep 2025 01:16PM UTC coverage: 87.738% (-0.008%) from 87.746%
17434703469

push

github

web-flow
Fix: Memory leakage in `QkCountOps` creation. (backport #14930) (#14959)

* Fix: Memory leakage in `QkCountOps` creation. (#14930)

* Fix: Memory leakage in `QkCountOps` creation.
The following commits attempt to fix some memoery issues that the struct `QkOpCounts`. The `qk_opcounts_free` method would segfault if an empty object was passed. The function now checks whether the passed option includes a null pointer or an empty instance. The commits also change how the `data` attribute is generated without using `std::mem::forget`, but instead collection the `OpCount` vec into a boxed_slice and consuming it into a `Box`. Inspired by what was done for #14884.

* Docs: Add release note.

* Fix: Ironic memory leakage

* Fix c opcounts free suggestion (#7)

* Rename to _clear, free name

* rm dangling file

* use pointers

* ... forgot to register test

* fix `size_t`

* Fix: Missed some renaming

* add note on clearing opscount

* be explicit about loading Box<[OpCount]>

* fix merge artifact

* Apply suggestions from code review

Co-authored-by: Eli Arbel <46826214+eliarbel@users.noreply.github.com>

* goto

* happy miri happy life

* Fix merge artifacts

---------

Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
Co-authored-by: Eli Arbel <46826214+eliarbel@users.noreply.github.com>
(cherry picked from commit 28aa4bdaa)

# Conflicts:
#	test/c/test_elide_permutations.c
#	test/c/test_optimize_1q_sequences.c
#	test/c/test_sabre_layout.c
#	test/c/test_split_2q_unitaries.c

* rm merge artifacts

---------

Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>
Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>

23 of 23 new or added lines in 1 file covered. (100.0%)

19 existing lines in 4 files now uncovered.

80030 of 91215 relevant lines covered (87.74%)

511255.11 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.67
-0.24% crates/qasm2/src/expr.rs
1
93.43
0.0% crates/transpiler/src/passes/unitary_synthesis.rs
5
91.75
-0.26% crates/qasm2/src/lex.rs
12
97.1
-0.94% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 17434703469.1 03 Sep 2025 01:47PM UTC 827
87.74
GitHub Action Run
Source Files on build 17434703469
  • Tree
  • List 827
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17434703469
  • 0af043f6 on github
  • Prev Build on gh-readonly-queue/stable/2.1/pr-14940-b7c28b70aaa42c10ea6c78c9a4256c5726e9d891 (#17164998928)
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