Closed jrevels closed 9 years ago
Ah, I realize now I probably should've checked out an orphan branch starting at d89ef16
or so, since a lot of these commits contain QuDirac stuff. I can squash the old commits in the merge, though, so that they don't pollute the history for master
.
I think this looks good. Could you maybe squash some of the commits (or all of them)?
This PR splits off the non-QuDirac work from #4. To copy the summary from there, here's what this PR does:
QuArray
s and fundamental basis typescreationop
method provided by @acroy to work with arbitrary number of particles (you can pick which particle the operator should act on). I renamed it toraiseop
for brevity's sake and implementedlowerop
as well. These methods aren't optimized in the slightest (likely a tad slower than @acroy's original implementation), but provide a good starting point for ladder operations in multi-particle systems.FiniteBasis
that supports a tensor product structureQuArray
/FiniteBasis
, including pretty-printing forQuArray
s (let me know what you think, it's hard to compactly convey all that info).Sorry for the previous commit; I had to go back and fix the tabs-to-spaces thing again for some reason.