Replies: 2 comments 3 replies
-
|
Hi @ProThicc, yes the new way to build operators is encapsulated in the import quimb.operator as qop
L = 10
H = qop.SparseOperatorBuilder()
for i in range(L - 2):
H += 0.5, ("x", i), ("y", i + 1), ("z", i + 2)
H.show()
# SparseOperatorBuilder(nsites=10, nterms=8, locality=3)
# x y z . . . . . . . +0.5
# . x y z . . . . . . +0.5
# . . x y z . . . . . +0.5
# . . . x y z . . . . +0.5
# . . . . x y z . . . +0.5
# . . . . . x y z . . +0.5
# . . . . . . x y z . +0.5
# . . . . . . . x y z +0.5
Hmpo = H.build_mpo()
Hmpo.show()
# │2│3│4│4│4│4│4│3│2│
# ●─●─●─●─●─●─●─●─●─●
# │ │ │ │ │ │ │ │ │ │ |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Is there a method in works for the three-site local hamiltonian builder for algorithms like PEPS? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a hamiltonian with three-body terms. I was interested to create an MPO using LocalHam1D that would include H3 and three body terms passed into the argument. Is there an easier way to approach this already handled by QUIMB?
Beta Was this translation helpful? Give feedback.
All reactions