qiskit-community / ffsim

Faster simulations of fermionic quantum circuits.
https://qiskit-community.github.io/ffsim/
Apache License 2.0
22 stars 5 forks source link

add return_lower_ranks argument to rdm #75

Closed kevinsung closed 9 months ago

kevinsung commented 10 months ago

For example, the function make_rdm12s from pyscf returns not only the 2-RDM but also the 1-RDM. Currently, we just discard the 1-RDM. If ffsim.rdm is called with return_lower_ranks=True, then it should return all of the RDMs up to the given rank, not just the single one.