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

Qiskit / qiskit / 6356445754
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: standalone-synth-interfaces
DEFAULT BRANCH: main
Ran 29 Sep 2023 08:26PM UTC
Jobs 1
Files 1260
Run time 22s
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

29 Sep 2023 07:51PM UTC coverage: 87.259% (+0.01%) from 87.245%
6356445754

push

github

web-flow
Assert properties not specifics of `DenseLayout` results (backport #10901) (#10907)

* Assert properties not specifics of `DenseLayout` results (#10901)

`DenseLayout` is a deterministic pass, so there's no risk of RNG
manipulations changing the output.  Internally, however, the use of the
sparse-matrix bandwidth-reduction algorithm in Scipy's
`reverse_cuthill_mckee` uses `numpy.argsort` internally with the
unstable default sorting algorithm, which means the output _can_ be
dependent on the way that sort is implemented.  The arrays that are
sorted are directly related to the input coupling map, and are likely to
include degeneracies, which pose problems when the implementation of the
unstable sort changes.  This was the case moving from Numpy 1.24 to
Numpy 1.25.

This commit instead changes the tests from asserting that a precise
layout was returned to asserting that the returned layout contains only
a connected subgraph of qubits.  The "most" connected component that
`DenseLayout` finds must be _at least_ connected, though this assertion
is not quite as strong as finding the _densest_.  The extra test
accounts for this weakening.

(cherry picked from commit 0f66cdfd3)

* Avoid use of un-backported kwarg

* Update test/python/transpiler/test_dense_layout.py

---------

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>

74147 of 84973 relevant lines covered (87.26%)

61224.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6356445754.1 29 Sep 2023 08:26PM UTC 0
87.26
GitHub Action Run
Source Files on build 6356445754
Detailed source file information is not available for this build.
  • Back to Repo
  • f03e4301 on github
  • Prev Build on gh-readonly-queue/stable/0.25/pr-10917-8d3fd8879357988998b5a73496ad384fbc5d1aa0 (#6355222332)
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