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

Qiskit / qiskit / 11572090796
88%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2024 10:57AM 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 09:41AM UTC coverage: 88.685%. Remained the same
11572090796

push

github

web-flow
Add RemoveIdentityEquivalent transpiler pass (#12384)

* add DropNegligible transpiler pass

* use math.isclose instead of numpy.allclose

* use pass directly instead of constructing pass manager

* lint

* allow passing additional gate types

* add docstrings to test classes

* Generalize the pass for all gates and rewrite in rust

This pivots the pass to work for all gates by checking all the
parameters in the standard gate library are within the specified
tolerance, and the matrix is equivalent to an identity for any other
gate defined in Python (with a matrix defined). To improve the
performance of the pass it is written in rust now. Additionally the
class is named to RemoveIdentityEquivalent to make the purpose of the
pass slightly more clear.

* Don't remove zero qubit gates

* Ensure computed gate error is always positive

* Pass docstring improvements

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Move test file

* Fix lint

* Fix docs

* Add optimized identity check for Pauli gates

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Mention zero qubit gates in the docstring

* Update approximation degree logic in absense of target

* Expand test coverage and fix bugs

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Julien Gacon <gaconju@gmail.com>

98 of 106 new or added lines in 6 files covered. (92.45%)

6 existing lines in 2 files now uncovered.

74997 of 84566 relevant lines covered (88.68%)

365199.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
91.01
crates/accelerate/src/remove_identity_equiv.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
92.09
-0.06% crates/accelerate/src/two_qubit_decompose.rs
5
92.48
-0.75% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 11572090796.1 29 Oct 2024 10:57AM UTC 895
88.68
GitHub Action Run
Source Files on build 11572090796
  • Tree
  • List 895
  • Changed 73
  • Source Changed 5
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11572090796
  • e89cb474 on github
  • Prev Build on main (#11526575270)
  • Next Build on main (#11577152130)
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