-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FermionicOp.simplify
does not document its cross-behavior with FermionicOp.index_order
#1260
Comments
Had you seen this https://qiskit.org/ecosystem/nature/stubs/qiskit_nature.second_q.operators.FermionicOp.index_order.html It was done as part of #902 which addressed the #901 issue you referred to above. #902 has some comment in there as regards the choice things that way. |
It's of little help when working with generic SparseLabelOp. simplify is apart of the generic interface, but not normal_order, nor index_order. |
With the current development version of Qiskit Nature qiskit-nature/qiskit_nature/second_q/operators/fermionic_op.py Lines 437 to 444 in eb30b6b
Arguably, we should add this note to the docstring of the |
FermionicOp.simplify
does not document its cross-behavior with FermionicOp.index_order
* docs: improve the documentation of SparseLabelOp.simplify Closes #1260 * docs: unify the `simplify` docstrings * docs: be even more explicit about term equivalence
…munity#1261) * docs: improve the documentation of SparseLabelOp.simplify Closes qiskit-community#1260 * docs: unify the `simplify` docstrings * docs: be even more explicit about term equivalence
Environment
What is happening?
Calling simplify on a FermionicOp doesn't yield a fully simplified representation of the operator.
Calling normal order first seems to be a work around for this issue, but it makes simplifying SparseLabelOp in a generic manner impossible.
Simplify for Fermionic op should likely make use of normal ordering to perform simplification. The current implementation doesn't work.
This is similar to issue #901, but it's not that simplify is not agressive enough, but that it fail entirely to simplify the fermionic operator.
How can we reproduce the issue?
What should happen?
simplify should manage to reduce the number of label in F as much or more than normal_order
Any suggestions?
aplying normal ordering could be part of simplify's implementation.
The text was updated successfully, but these errors were encountered: