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

Qiskit / qiskit / 13000669575
88%

Build:
DEFAULT BRANCH: main
Ran 28 Jan 2025 12:21AM UTC
Jobs 1
Files 913
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

27 Jan 2025 11:21PM UTC coverage: 88.929% (+0.007%) from 88.922%
13000669575

push

github

web-flow
Remove sort_key attribute from DAGNode (#13736)

* Remove sort_key attribute from DAGNode

Prior to having the DAGCircuit in rust the `sort_key` attribute was added
as a cache to speed up the lexicographical topological sort. Prior to
having this attribute the topological sort method would compute the sort
key as a string on the fly which ended up being a large bottleneck in
transpilation (see: #4040 for more details). However, since migrating
the DAGCircuit implementation to Rust this sort_key attribute isn't
needed anymore because we call the rustworkx-core function with a tuple
of bit objects instead of a string. The `sort_key` atribute was left on
in place for backwards compatibility (it shouldn't have been public,
this was a mistake in #4040) and when we create a python DAGNode object
that will be returned to Python the creation of the sort key is
unnecessary overhead (it takes roughly 1% of profile time to format the
sort_key string during transpilation). Since nothing in DAGCircuit is
actually using it this commit removes it to save the CPU cycles
creating the string on each dag creation. We will need to add a
deprecation to 1.4.0 to mark this removal for 2.0.0 since this was
missed in 1.3.0.

* Simplify star pre-routing sort_key logic

32 of 32 new or added lines in 4 files covered. (100.0%)

3 existing lines in 2 files now uncovered.

79671 of 89589 relevant lines covered (88.93%)

351726.68 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
77.46
-2.54% crates/circuit/src/dag_node.rs
2
92.73
1.0% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 13000669575.1 28 Jan 2025 12:21AM UTC 913
88.93
GitHub Action Run
Source Files on build 13000669575
  • Tree
  • List 913
  • Changed 70
  • Source Changed 5
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13000669575
  • 75436a48 on github
  • Prev Build on main (#12998853100)
  • Next Build on main (#13007821912)
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