Repo Added
|
Files
866
|
Badge
README BADGES
|
github
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 (cherry picked from commit ce27a54d5)
1 of 1 new or added line in 1 file covered. (100.0%)
11 existing lines in 4 files now uncovered.92262 of 104382 relevant lines covered (88.39%)
555546.96 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|