Open mganahl opened 4 years ago
Looks nice!
Not sure what finalize
should do though.
MPOs are not unique, and there are simple but suboptimal ways of building them. One can compress them losslessly and pretty efficiently, but only once all the terms in the MPO are know. That's what finalize
would be doing
I think this would be nice to have just in general.
We should build a list of operators that we would likely want.
Examples:
X Y Z T H CNOT Toffile Sx Sy Sz.
Any others?
I'm new to this library, but I think it would be helpful to have common bosonic operators as well? Namely B, Bd, N, NN?
I have a decent amount of this code written and would be happy to work on this if someone else is not already, but I have not contributed much to large projects before and would need some pointers on the preferred way to write tests, formatting, etc.?
This is related to #366, #379 and #390 For backend independent initialization of e.g. MPOs we need abstract quantum operators like e.g. spin (Sx, Sy, Sz) or fermionic/bosonic ladder operators.
The initialization for MPOs I have in mind is