Skip to content

Document InteractionOperator Hermitian assumptions#1306

Open
matti-sarjala wants to merge 1 commit into
quantumlib:mainfrom
matti-sarjala:document-interaction-operator-hermitian
Open

Document InteractionOperator Hermitian assumptions#1306
matti-sarjala wants to merge 1 commit into
quantumlib:mainfrom
matti-sarjala:document-interaction-operator-hermitian

Conversation

@matti-sarjala
Copy link
Copy Markdown

Fixes #479.

This updates the InteractionOperator docstring to clarify that the representation is intended for Hermitian interaction Hamiltonians, such as molecular electronic-structure Hamiltonians.

For arbitrary non-Hermitian fermionic operators, users should use FermionOperator. This is important because transform routines specialized for InteractionOperator may rely on Hermitian structure assumptions.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 14, 2026

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.

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 updates the docstring for the InteractionOperator class to clarify that it is intended for Hermitian interaction Hamiltonians, such as molecular electronic-structure Hamiltonians, and is not a general-purpose container for non-Hermitian fermionic operators. No review comments were provided, so I have no feedback to offer.

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.

Applying Jordan-Wigner to FermionOperator vs. InteractionOperator

1 participant