Hi,
I am trying to do simple unitary circuits (MPO) on MPS . For example, I want to get a MPS representation of the states:
\displaystyle |\Psi_1 \rangle =\left[ \prod_{i=1}^{N} CZ_{i,i+1}\right]\; \ket{++\dots +}
\displaystyle |\Psi_2(\alpha) \rangle = \bigotimes_{i=1}^{N}\exp{(-i\alpha X_i)} |\Psi_1 \rangle .
\displaystyle |\Psi_3 (\alpha,\beta)\rangle =\prod_{i=1}^{N}\exp(-i\beta Z_{i-1}Z_{i+1}) |\Psi_2(\alpha) \rangle .
In this regard, I was following the sample code available at: ITensorMPS.jl/examples/gate_evolution/quantum_simulator.jl at main · ITensor/ITensorMPS.jl · GitHub
but I keep getting the error:
UndefVarError:
ops
not defined inMain
Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from.
Hint: a global variable of this name also exists in ITensors.
Hint: a global variable of this name also exists in ITensorMPS.
At any rate, would it be possible to get an idea of how to produce minimum working code for say, |\Psi_2\rangle above?
Thanks in advance!
Arnab