SRDef syten::IPEPSv2::full_update_cost_function | ( | SDef const & | ideal_ideal, |
STensor const & | r_tensor, | ||
STensor const & | s_tensor, | ||
STensor const & | als_tensor, | ||
SBasisId | external_basis, | ||
SBasisId | central_basis | ||
) |
Internal helper calculating the cost of the full update given the squared norm of the ideal state, the norm tensor with two copies of the not-als reduced tensor, the norm tensor with the ideal tensor and one copy of the not-als reduced tensor, the als reduced tensor and the external and central basis of the als reduced tensor.
References syten::abs(), syten::conj(), and syten::sqrt().
Referenced by full_update_apply_gate().