You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #277 we can now do h[sites(...), sites(...)] with h::AbstractHamiltonian. This gives a SparseMatrixCSC, a copy of the corresponding matrix elements of hamiltonian(h). It parallels g[sites(...), sites(...)] with g::GreenSolution, which gives a Matrix. But with g we can also do g[::SiteSelector, ::SiteSelector], which gives an OrbitalSliceMatrix. For consistency, we should also be able to do that with h, i.e. h[::SiteSelector, ::SiteSelector], also returning an OrbitalSliceMatrix
(Incidentally, h[sites(...), sites(...)] should return the corresponding block of default_hamiltonian(h), not of hamiltonian(h).)
The text was updated successfully, but these errors were encountered:
With #277 we can now do
h[sites(...), sites(...)]
withh::AbstractHamiltonian
. This gives aSparseMatrixCSC
, a copy of the corresponding matrix elements ofhamiltonian(h)
. It parallelsg[sites(...), sites(...)]
withg::GreenSolution
, which gives aMatrix
. But withg
we can also dog[::SiteSelector, ::SiteSelector]
, which gives anOrbitalSliceMatrix
. For consistency, we should also be able to do that withh
, i.e.h[::SiteSelector, ::SiteSelector]
, also returning anOrbitalSliceMatrix
(Incidentally,
h[sites(...), sites(...)]
should return the corresponding block ofdefault_hamiltonian(h)
, not ofhamiltonian(h)
.)The text was updated successfully, but these errors were encountered: