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

Qiskit / qiskit / 11034825813
88%

Build:
DEFAULT BRANCH: main
Ran 25 Sep 2024 02:32PM UTC
Jobs 1
Files 885
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

25 Sep 2024 01:29PM UTC coverage: 88.743% (-0.02%) from 88.76%
11034825813

push

github

web-flow
Add Rust representation of `EquivalenceLibrary` (#12585)

* Initial: Add equivalence to `qiskit._accelerate.circuit`

* Add: `build_basis_graph` method

* Add: `EquivalencyLibrary` to `qiskit._accelerate.circuit`
- Add `get_entry` method to obtain an entry from binding to a `QuantumCircuit`.
- Add `rebind_equiv` to bind parameters to `QuantumCircuit`

* Add: PyDiGraph converter for `equivalence.rs`

* Add: Extend original equivalence with rust representation

* Fix: Correct circuit parameter extraction

* Add: Stable infrastructure for EquivalenceLibrary
- TODO: Make elements pickleable.

* Add: Default methods to equivalence data structures.

* Fix: Adapt to new Gate Structure

* Fix: Erroneous display of `Parameters`

* Format: Fix lint test

* Fix: Use EdgeReferences instead of edge_indices.
- Remove stray comment.
- Use match instead of matches!.

* Fix: Use StableDiGraph for more stable indexing.
- Remove required py argument for get_entry.
- Reformat `to_pygraph` to use `add_nodes_from` and `add_edges_from`.
- Other small fixes.

* Fix: Use `clone` instead of `to_owned`
- Use `clone_ref` for the PyObject Graph instance.

* Fix: Use `OperationTypeConstruct` instead of `CircuitInstruction`
- Use `convert_py_to_operation_type` to correctly extract Gate instances into rust operational datatypes.
- Add function `get_sources_from_circuit_rep` to not extract circuit data directly but only the necessary data.
- Modify failing test due to different mapping. (!!)
- Other tweaks and fixes.

* Fix: Elide implicit lifetime of PyRef

* Fix: Make `CircuitRep` attributes OneCell-like.
- Attributes from CircuitRep are only written once, reducing the overhead.
- Modify `__setstate__` to avoid extra conversion.
- Remove `get_sources_from_circuit_rep`.

* Fix: Incorrect pickle attribute extraction

* Remove: Default initialization methods from custom datatypes.
- Use `__getnewargs__ instead.

* Remove: `__getstate__`, `__setstate__`, use `__getnewargs__` instead.

... (continued)

385 of 488 new or added lines in 5 files covered. (78.89%)

13 existing lines in 3 files now uncovered.

73811 of 83174 relevant lines covered (88.74%)

363274.76 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
27.27
-50.18% qiskit/circuit/equivalence.py
99
79.2
crates/accelerate/src/equivalence.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
27.27
-50.18% qiskit/circuit/equivalence.py
5
92.48
0.0% crates/qasm2/src/lex.rs
6
97.61
1.39% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 11034825813.1 25 Sep 2024 02:32PM UTC 885
88.74
GitHub Action Run
Source Files on build 11034825813
  • Tree
  • List 885
  • Changed 64
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6a041eee on github
  • Prev Build on main (#11019425622)
  • Next Build on main (#11038262093)
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