Replies: 1 comment 2 replies
-
|
Hey!
Do you have any reference values we could use as a small easy test?
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on simulating a spin-1/2 system and need to compute the expectation value of the observable:
$$\ J_x^2 = \left( \sum_{i=1}^N \sigma_i^x \right)^2 $$ ,$\langle \sigma_i^x\sigma_j^x\rangle$ for arbitrary $(i,j)$ -pairs (not just nearest neighbors). I initially tried using the
Expanding this observable requires calculating the two-site spin correlations
XXgate from the mqt.yaqs library (imported viafrom mqt.yaqs.core.libraries.gate_library import XX) to compute these correlations, but encountered the following error:I’m wondering:
MPS.expectsupported MPOs as input.Beta Was this translation helpful? Give feedback.
All reactions