Skip to content

Add test to cover check_commutability#1081

Open
mhucka wants to merge 2 commits into
tensorflow:masterfrom
mhucka:test-check-commutability
Open

Add test to cover check_commutability#1081
mhucka wants to merge 2 commits into
tensorflow:masterfrom
mhucka:test-check-commutability

Conversation

@mhucka
Copy link
Copy Markdown
Member

@mhucka mhucka commented Jun 5, 2026

This adds a unit test for util.check_commutability(), a previously-uncovered function.

This adds a unit test for `util.check_commutability()`, a
previously-uncovered function.
@mhucka mhucka marked this pull request as ready for review June 5, 2026 02:45
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new unit test test_check_commutability to tensorflow_quantum/python/util_test.py to verify the behavior of the check_commutability utility function with commutable, non-commutable, single, and empty PauliSum terms. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@mhucka mhucka added area/tests Involves tests and testing of the TFQ codebase priority/before-0.7.7 To be done before releasing TFQ version 0.7.7 labels Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tests Involves tests and testing of the TFQ codebase priority/before-0.7.7 To be done before releasing TFQ version 0.7.7

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant