Skip to content

How to define composite Hamiltonian in composite Hilbert space #1598

Answered by PhilipVinc
Jachi9 asked this question in Q&A
Discussion options

You must be logged in to vote

So you are getting an imperscrutable error message, which I'm fixing. After the fix you'll see this error

TypeError: unsupported operand type(s) for *: 'FermionOperator2nd' and 'LocalOperator'

which is telling you exactly that: you can't as of now mix and match operators of two different kinds.
In short, it means you cannot combine fermions with bosons because we have not implemented the logic for it... yet.
It's possible to implement it with some care but requires getting your hands dirty

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Jachi9
Comment options

@PhilipVinc
Comment options

Answer selected by Jachi9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants