Skip to content

Add tests for spin_system.unique_name()#1027

Open
mhucka wants to merge 2 commits intotensorflow:masterfrom
mhucka:add-uniquename-test
Open

Add tests for spin_system.unique_name()#1027
mhucka wants to merge 2 commits intotensorflow:masterfrom
mhucka:add-uniquename-test

Conversation

@mhucka
Copy link
Copy Markdown
Member

@mhucka mhucka commented Mar 27, 2026

This PR adds a test class UniqueNameTest to
tensorflow_quantum/datasets/spin_system_test.py to test the unique_name generator function in spin_system.py.

This PR adds a test class `UniqueNameTest` to
`tensorflow_quantum/datasets/spin_system_test.py` to test the
`unique_name` generator function in `spin_system.py`.
Copy link
Copy Markdown

@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 introduces a new test class, UniqueNameTest, to verify the unique_name generator in spin_system_test.py. Feedback was provided to refactor the test logic into a single loop using f-strings to improve conciseness and reduce duplication.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@mhucka mhucka marked this pull request as ready for review March 27, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant