Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent ordering of tags #6123

Merged

Conversation

skushnir123
Copy link
Contributor

@skushnir123 skushnir123 commented Jun 6, 2023

Minimal change to fix #5949.

  • Added logic to only add the user-provided description in value_equality_values, not the generated default description.
  • Added corresponding tests.

@skushnir123 skushnir123 requested review from a team, vtomole and cduck as code owners June 6, 2023 23:22
@skushnir123 skushnir123 requested a review from pavoljuhas June 6, 2023 23:22
@google-cla
Copy link

google-cla bot commented Jun 6, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@CirqBot CirqBot added the size: S 10< lines changed <50 label Jun 6, 2023
Copy link
Collaborator

@tanujkhattar tanujkhattar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening your first PR! The preferred solution here would be to follow Matthew's comment - #5949 (comment)

@skushnir123 skushnir123 marked this pull request as draft June 6, 2023 23:31
@skushnir123 skushnir123 marked this pull request as ready for review June 7, 2023 00:54
@skushnir123 skushnir123 requested a review from tanujkhattar June 7, 2023 00:56
Copy link
Collaborator

@tanujkhattar tanujkhattar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % nit.

cirq-core/cirq/ops/gateset_test.py Outdated Show resolved Hide resolved
@tanujkhattar tanujkhattar merged commit 3ac3c30 into quantumlib:master Jun 7, 2023
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
* added sorted(*) to fix issue of identical sets being labeled unequal and added tests

* only comparing description when given

* Update cirq-core/cirq/ops/gateset_test.py

Co-authored-by: Tanuj Khattar <tanujkhattar@google.com>

* ran formatter

---------

Co-authored-by: Tanuj Khattar <tanujkhattar@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inconsistent ordering of tags in GateFamily._default_description
3 participants