qiboteam / boostvqe

Using DBI to boost VQE optimization
4 stars 1 forks source link

Implementing a simple Jordan Wigner model #72

Open marekgluza opened 3 months ago

marekgluza commented 3 months ago
jeongrak-son commented 3 months ago

If you expand, the term (with the h.c.) is already quite simple: $\frac{1}{2}(X{i}\otimes Z{i+1}\otimes X{i+2} + Y{i} \otimes Z{i+1}\otimes Y{i+2})$, or equivalently $\frac{1}{2}Z{i+1}\otimes (X{i}\otimes X{i+2} + Y{i}\otimes Y_{i+2})$. Two terms commute, so when you exponentiate, you can write $e^{-iHt} = e^{-i\frac{t}{2}X\otimes Z\otimes X}e^{-i\frac{t}{2}Y\otimes Z\otimes Y}$.

marekgluza commented 3 months ago

thanks @jeongrak-son the commuting question was what I was wondering about

you got 2 and not 4 terms - will I not additionally get $X\otimes Z \otimes Y$?

jeongrak-son commented 3 months ago

It will be cancelled by the hermitian conjugate. $(X-iY)Z(X+iY)+(X+iY)Z(X-iY) = (XZX + YZY - iYZX +iXZY) + (XZX + YZY + iYZX -iXZY) = 2(XZX+YZY)$.

marekgluza commented 3 months ago

brilliant, thank you @jeongrak-son this is very helpful and I think this is going to be the right way to find a solution

to me this is simple enough to code now