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

Qiskit / qiskit / 11803930745

12 Nov 2024 07:01PM UTC coverage: 88.919% (-0.01%) from 88.932%
11803930745

Pull #13425

github

mergify[bot]
Avoid overhead for synthesized nodes lookup (#13424)

After #12550 a hash implementation was added to the implementation
of DAGOpNode to be able to have identical instances of dag nodes used be
usable in a set or dict. This is because after #12550 changed the
DAGCircuit so the DAGOpNode instances were just a python view of the
data contained in the nodes of a dag. While prior to #12550 the actual
DAGOpNode objects were returned by reference from DAG methods. However,
this hash implementation has additional overhead compared to the object
identity based version used before. This has caused a regression in some
cases for high level synthesis when it's checking for nodes it's already
synthesized. This commit addresses this by changing the dict key to be
the node id instead of the node object. The integer hashing is
significantly faster than the object hashing.

(cherry picked from commit 8c6ad024c)
Pull Request #13425: Avoid overhead for synthesized nodes lookup (backport #13424)

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

16 existing lines in 3 files now uncovered.

79051 of 88902 relevant lines covered (88.92%)

357227.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.2
/crates/accelerate/src/unitary_synthesis.rs


Source Not Available

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