SyTen

◆ normSqd() [3/3]

SRDef syten::MPS::normSqd ( State const &  a)

Returns the squared norm of a state, i.e. \(\langle a | a \rangle \).

Returns
the squared norm of the state, a real number.

References syten::abs(), syten::imag(), overlap(), syten::real(), SYTEN_ASSERT_MSG, and SYTEN_ZNORM_THRESHOLD.

+ Here is the call graph for this function: