In the iTensor documentation, a default projective operator is mentioned, with the example code
auto sites = SpinHalf(N);
//Projects site 3 onto state 2 (i.e. the down state)
auto P3_2 = op(sites,"Proj",3,{"State",2});
However, I'm confused as to what form this operator is in, and how it can be actually applied to a spin-half MPS. Treating P3_2
as an MPO and running applyMPO(P3_2, psi)
gives an error, as are my attempts to package P3_2
into an AutoMPO
object somehow. What does the intended usage of these operators look like?