I am trying to generate a Haar random state for a spin-1/2 chain of length 3. My goal is to sample a truly Haar random pure state in the Hilbert space of the chain.
I have considered using randomMPS
with a sufficiently large bond dimension. However, I am uncertain if this approach correctly samples from the Haar measure over the full Hilbert space.
Is randomMPS
appropriate for this purpose? Or is there a better method available within ITensor to generate such Haar random states for a finite chain?