SyTen

◆ parity()

STensorProxy & syten::STensorImpl::STensorProxy::parity ( SBasisId const &  which)

Flips the parity status of the leg which.

Remarks
This function is autodifferentiable except if the tensor network is incomplete and the downstream adjoint does not have a basis which.

References autodiff_enabled(), b(), syten::STensorImpl::STensor::copy(), get_and_renew_autodiff(), syten::STensorImpl::Autodiff::ComputeNode::get_output_adjoint(), syten::isFermionic(), syten::STensorImpl::make_zero(), syten::mve(), parities, syten::STensorImpl::parity(), syten::STensorImpl::Autodiff::return_first_output_adjoint(), set_autodiff_node(), SYTEN_ASSERT_MSG, and syten::to_string_def().

Referenced by syten::T3N::RDMs::OrbRDM::construct(), syten::T3N::RDMs::OrbRDM::contract_locals(), syten::T3N::overlap_rec(), syten::STensorImpl::parity(), syten::T3N::RDMs::OrbRDM::twoSite_rec(), syten::T3N::VarationalTrunc::update_2phys_branch_down(), syten::T3N::VarationalTrunc::update_2phys_branch_right(), syten::T3N::VarationalTrunc::update_2phys_branch_up(), syten::T3N::VarationalTrunc::update_2phys_down(), and syten::T3N::VarationalTrunc::update_2phys_up().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: