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

Qiskit / qiskit / 11578268829
88%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2024 04:48PM UTC
Jobs 1
Files 895
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

29 Oct 2024 03:31PM UTC coverage: 88.652% (-0.03%) from 88.685%
11578268829

push

github

web-flow
Fix performance regression in UnitarySynthesis (#13375)

* Fix performance regression in UnitarySynthesis

This commit fixes a performance regression that was introduced in
PR #13141. When the pass is looking up the preferred synthesis direction
for a unitary based on the connectvity constraints the connectivity was
being provided as a PyList. To look up the edge in connectivity set this
meant we needed to iterate over the list and then create a set that rust
could lookup if it contains an edge or it's reverse. This has
significant overhead because its iterating via python and also iterating
per decomposition. This commit addresses this by changing the input type
to be a HashSet from Python so Pyo3 will convert a pyset directly to a
HashSet once at call time and that's used by reference for lookups
directly instead of needing to iterate over the list each time.

* Avoid constructing plugin data views with default plugin

If we're using the default plugin the execution will happen in rust
and we don't need to build the plugin data views that are defined in the
plugin interface. Profiling the benchpress test using the hamlib
hamiltonian:

ham_graph-2D-grid-nonpbc-qubitnodes_Lx-5_Ly-186_h-0.5-all-to-all

that caught this originally regression was showing an inordinate amount
of time being spent in the construction of
`_build_gate_lengths_by_qubit` and `_build_gate_errors_by_qubit` which
isn't being used because this happens internally in rust now. To
mitigate this overhead this commit migrates the sections computing these
values to the code branch that uses them and not the default plugin
branch that uses rust.

31 of 32 new or added lines in 2 files covered. (96.88%)

30 existing lines in 4 files now uncovered.

74968 of 84564 relevant lines covered (88.65%)

364090.78 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
58.41
-3.54% qiskit/transpiler/passes/synthesis/unitary_synthesis.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.38
-0.77% qiskit/synthesis/two_qubit/xx_decompose/decomposer.py
3
91.73
-0.25% crates/qasm2/src/lex.rs
6
97.62
-0.46% crates/qasm2/src/parse.rs
20
58.41
-3.54% qiskit/transpiler/passes/synthesis/unitary_synthesis.py
Jobs
ID Job ID Ran Files Coverage
1 11578268829.1 29 Oct 2024 04:48PM UTC 895
88.65
GitHub Action Run
Source Files on build 11578268829
  • Tree
  • List 895
  • Changed 68
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11578268829
  • 01642a8e on github
  • Prev Build on main (#11577152130)
  • Next Build on main (#11578734687)
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