qiskit icon indicating copy to clipboard operation
qiskit copied to clipboard

Fix HoareOptimizer cache recursion and add regression test

Open littlebullGit opened this issue 3 months ago • 2 comments

Fixes #14969

Summary

  • Fix [HoareOptimizer] recursion when cache entries become stale.
  • Add regression test covering issue #14969.
  • Document the fix in the 2.3 release notes.

Details and comments

  • [x] I have added the tests to cover my changes.
  • [ ] I have updated the documentation accordingly.
  • [x] I have read the CONTRIBUTING document.

littlebullGit avatar Oct 02 '25 20:10 littlebullGit

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

qiskit-bot avatar Oct 02 '25 20:10 qiskit-bot

Pull Request Test Coverage Report for Build 20030304144

Details

  • 10 of 10 (100.0%) changed or added relevant lines in 1 file are covered.
  • 21 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.008%) to 88.352%

Files with Coverage Reduction New Missed Lines %
crates/circuit/src/parameter/parameter_expression.rs 1 82.3%
crates/circuit/src/parameter/symbol_expr.rs 1 73.27%
crates/qasm2/src/expr.rs 1 93.82%
crates/qasm2/src/lex.rs 6 91.52%
crates/qasm2/src/parse.rs 12 97.09%
<!-- Total: 21
Totals Coverage Status
Change from base Build 20001590113: -0.008%
Covered Lines: 96128
Relevant Lines: 108801

💛 - Coveralls

coveralls avatar Oct 02 '25 21:10 coveralls