Skip to content

Add test cases for untested ops/batch_util.py functions - #1092

Open
mhucka wants to merge 5 commits into
tensorflow:masterfrom
mhucka:add-ops-tests
Open

mhucka wants to merge 5 commits into
tensorflow:masterfrom
mhucka:add-ops-tests

Conversation

@mhucka

@mhucka mhucka commented Jun 12, 2026 •

Copy link
Copy Markdown
Member

This is a straightforward addition of a few unit test cases to increase test coverage. It adds three unit tests to BatchUtilTest in batch_util.py to cover TFQPauliSumCollector.next_job, TFQPauliSumCollector.on_job_result, and TFQPauliSumCollector.estimated_energy.

This is a straightforward addition of a few unit test cases to increase
test coverage.
@mhucka mhucka changed the title 8Add test cases for untested ops/batch_util.py functions Add test cases for untested ops/batch_util.py functions Jun 12, 2026
@mhucka mhucka added area/tests Involves tests and testing of the TFQ codebase area/core Involves core functionality labels Jun 12, 2026
@mhucka
mhucka marked this pull request as ready for review October 13, 2026 21:50

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

Copy link
Copy Markdown
Contributor

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 comprehensive unit tests for the TFQPauliSumCollector class in tensorflow_quantum/core/ops/batch_util_test.py. Specifically, it introduces tests for the next_job, on_job_result, and estimated_energy methods to verify correct job generation, result collection, and energy estimation behavior. There are no review comments, and I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Involves core functionality area/tests Involves tests and testing of the TFQ codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant