Skip to content

Add unit tests for utils/indexing.py#1331

Merged
mhucka merged 3 commits into
quantumlib:mainfrom
mhucka:add-indexing-test
Jun 4, 2026
Merged

Add unit tests for utils/indexing.py#1331
mhucka merged 3 commits into
quantumlib:mainfrom
mhucka:add-indexing-test

Conversation

@mhucka

@mhucka mhucka commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Created src/openfermion/utils/indexing_test.py to provide unit tests for the up_index, down_index, and up_then_down functions in src/openfermion/utils/indexing.py.

Created `src/openfermion/utils/indexing_test.py` to provide unit tests
for the `up_index`, `down_index`, and `up_then_down` functions in
`src/openfermion/utils/indexing.py`.
@mhucka

mhucka commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini review

@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 introduces a new test file src/openfermion/utils/indexing_test.py containing unit tests for the indexing utility functions up_index, down_index, and up_then_down. The tests verify correct behavior for even and odd numbers of modes. There are no review comments, and I have no feedback to provide.

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 marked this pull request as ready for review June 3, 2026 04:18

@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 a new test file src/openfermion/utils/indexing_test.py which implements unit tests for the up_index, down_index, and up_then_down utility functions. There are no review comments, so I have no feedback to provide.

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 requested review from fdmalone and mpharrigan June 3, 2026 05:09
@mhucka
mhucka enabled auto-merge June 3, 2026 05:10
@mhucka
mhucka added this pull request to the merge queue Jun 4, 2026
Merged via the queue into quantumlib:main with commit e3b13cb Jun 4, 2026
23 checks passed
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.

2 participants