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

Qiskit / qiskit / 9757893531
88%

Build:
DEFAULT BRANCH: main
Ran 02 Jul 2024 09:13AM UTC
Jobs 1
Files 845
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

02 Jul 2024 08:13AM UTC coverage: 89.804% (-0.02%) from 89.825%
9757893531

push

github

web-flow
Enable avoiding Python operation creation in transpiler (#12692)

* Avoid Python operation creation in transpiler

Since #12459 accessing `node.op` in the transpiler eagerly creates a
Python object on access. This is because we now are no longer storing a
Python object internally and we need to rebuild the object to return the
python object as expected by the api. This is causing a significant
performance regression because of the extra overhead. The longer term
goal is to move as much of the performance critical passes to operate in
rust which will eliminate this overhead. But in the meantime we can
mitigate the performance overhead by changing the Python access patterns
to avoid the operation object creation. This commit adds some new getter
methods to DAGOpNode to give access to the inner rust data so that we
can avoid the extra overhead. As a proof of concept this updates the
unitary synthesis pass in isolation. Doing this fixes the regression
caused by #12459 for that pass. We can continue this migration for
everything else in follow up PRs. This commit is mostly to establish the
pattern and add the python space access methods.

* Remove unused import

* Add path to avoid StandardGate conversion in circuit_to_dag

* Add fast path through dag_to_circuit

127 of 181 new or added lines in 9 files covered. (70.17%)

2 existing lines in 1 file now uncovered.

64508 of 71832 relevant lines covered (89.8%)

301021.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
95.09
-0.84% crates/circuit/src/circuit_instruction.rs
23
83.67
-7.47% crates/circuit/src/dag_node.rs
24
78.96
-0.21% crates/circuit/src/operations.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
93.13
1.27% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 9757893531.1 02 Jul 2024 09:13AM UTC 845
89.8
GitHub Action Run
Source Files on build 9757893531
  • Tree
  • List 845
  • Changed 42
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d2ab4dfb on github
  • Prev Build on main (#9751520597)
  • Next Build on main (#9762202848)
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