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

Qiskit / qiskit / 9195596815
88%

Build:
DEFAULT BRANCH: main
Ran 22 May 2024 05:29PM UTC
Jobs 1
Files 833
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

22 May 2024 04:31PM UTC coverage: 89.611%. Remained the same
9195596815

push

github

web-flow
Expose internal rust interface to DenseLayout (#12104)

* Expose internal rust interface to DenseLayout

This commit makes a small change to the rust code for DenseLayout that
enables calling it more easily from rust. The primary obstacle was the
pyfunction used PyReadonlyArray2<f64> inputs which precludes calling it
with rust constructed Array2Views<f64>. This adds a new inner public
function which takes the array view directly and then the pyfunction's
only job is to convert the inputs and outputs to Python. The python side
of the function is still building a sparse matrix and then runs reverse
Cuthill–McKee to get a permutation of the densest subgraph so any rust
consumers will want to keep that in mind (and maybe use sprs to do the
same).

At the same time it corrects an oversight in the original implementation
where the returned numpy arrays of the densest subgraph are copied
instead of being returned as references. This should slightly improve
performance by eliminating 3 array copies that weren't needed.

* Remove PyResult

---------

Co-authored-by: Henry Zou <87874865+henryzou50@users.noreply.github.com>

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

3 existing lines in 2 files now uncovered.

62319 of 69544 relevant lines covered (89.61%)

232810.78 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.02
-0.24% crates/qasm2/src/expr.rs
2
92.37
-0.25% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 9195596815.1 22 May 2024 05:28PM UTC 833
89.61
GitHub Action Run
Source Files on build 9195596815
  • Tree
  • List 833
  • Changed 29
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f08c579c on github
  • Prev Build on gh-readonly-queue/main/pr-12415-9d0ae64f6dba20872a5f62a7f2d2cb15983582ef (#9193934584)
  • Next Build on main (#9197774025)
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