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

Qiskit / qiskit / 17852034804

19 Sep 2025 07:09AM UTC coverage: 88.304% (+0.02%) from 88.289%
17852034804

push

github

web-flow
Fix SparsePauliOp.is_unitary() to respect input tolerance values (#14676)

* Fix SparsePauliOp.is_unitary() to respect input tolerance values

Fixes #14107 by passing the tolerance parameters from is_unitary() to simplify().
This ensures that the tolerance values are properly respected when checking
if an operator is unitary.

The change includes a test case that verifies the fix works as expected.

* Fix SparsePauliOp.is_unitary() to respect input tolerance values

This commit fixes issue #14107 by ensuring that the tolerance values passed to
is_unitary() are properly used when checking if the operator is unitary. The
tolerances are now correctly passed through to the internal operations.

* Update docstring to better explain how tolerance parameters are used
* Add test case to verify tolerance behavior
* Add release note for the bug fix

* update based on  Cryoris' comments

* format test file with black and update release notes based on comments

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

9 existing lines in 3 files now uncovered.

92783 of 105072 relevant lines covered (88.3%)

856631.83 hits per line

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

96.62
/crates/qasm2/src/parse.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

© 2026 Coveralls, Inc