evangelistalab / forte

http://www.evangelistalab.org
GNU Lesser General Public License v3.0
50 stars 28 forks source link

Implement functions to manipulate second quantized operators #398

Closed fevangelista closed 4 days ago

fevangelista commented 1 month ago

Description

Add functionality to manipulate general strings of second quantized operators together with tests. See the updated tutorial (1.03) for examples.

User Notes

Checklist

review-notebook-app[bot] commented 1 week ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

JonathonMisiewicz commented 1 week ago

At risk of being difficult, can you double-check the Creating SparseOperator Object section?

The LaTeX render for [1a+ 2b+ 3b- 0a-] seems to encode for [1a+ 2b+ 2b- 0a-]. It isn't clear to me whether I'm just not understanding the syntax, or whether that's a typo.

fevangelista commented 5 days ago

Thanks for the feedback and for catching these issues. I just pushed fixes.

JonathonMisiewicz commented 5 days ago

Great! I'll give this one more pass in the next 24 hours, if you're not in a rush to merge this one in.