- #1
woodydewar
- Homework Statement
- Code the spin spin correlation function (see below) for a Spin chain. The states are represented by integers.
- Relevant Equations
- $\langle \vec{S}_i \vec{S}_j /rangle$
I tried to code spinoperators who act like $S_x^iS_x^j$ (y and z too) and to apply them to the states, which works fine. I am not sure about how to code the expectation value in the product Space. Has anyone pseudo Code to demonstrate that?