Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 10, 2025

Summary

Fixes _box_eq to return non equality when the boxes have different unit fields.

Details and comments

It seems _box_eq is invoked only when comparing circuits, not DAGOpNodes. There might be other cases we miss in other nodes due to the stricter check used by DAGOpNode.


This is an automatic backport of pull request #14716 done by [Mergify](https://mergify.com).

* Fixed a bug where nonequal boxes were considered equal

* Release note

* Update releasenotes/notes/fix-box-eq-check-1ff339fcc1db983f.yaml

* Update releasenotes/notes/fix-box-eq-check-1ff339fcc1db983f.yaml

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
(cherry picked from commit 925f144)
@mergify mergify bot requested a review from a team as a code owner July 10, 2025 17:16
@qiskit-bot
Copy link
Collaborator

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

@github-actions github-actions bot added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Jul 10, 2025
@github-actions github-actions bot added this to the 2.1.1 milestone Jul 10, 2025
@mtreinish mtreinish enabled auto-merge July 10, 2025 17:22
@mtreinish mtreinish added this pull request to the merge queue Jul 10, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 16201623491

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 28 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.01%) to 87.703%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 93.67%
crates/qasm2/src/lex.rs 3 93.3%
crates/qasm2/src/parse.rs 24 96.15%
Totals Coverage Status
Change from base Build 16122997380: -0.01%
Covered Lines: 80086
Relevant Lines: 91315

💛 - Coveralls

Merged via the queue into stable/2.1 with commit c446a84 Jul 10, 2025
29 checks passed
@mtreinish mtreinish deleted the mergify/bp/stable/2.1/pr-14716 branch July 10, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants