SyTen

◆ add_dummy_leg()

STensor syten::STensorImpl::add_dummy_leg ( STensor const &  in,
SBasis  vacuum 
)

Inserts an additional leg with basis vacuum into the tensor.

vacuum needs to be a vacuum basis and one-dimensional.

Remarks
This function is an AD no-op and hence autodifferentiable.

References syten::STensorImpl::STensor::autodiff_enabled(), syten::STensorImpl::SBasis::gen_basis(), syten::STensorImpl::STensor::get_autodiff(), syten::STensorImpl::STensor::get_bases(), syten::STensorImpl::STensor::get_fermionic_order(), if_constexpr, syten::insertDummy(), make_zero(), syten::mve(), syten::STensorImpl::STensor::new_autodiff_id(), syten::STensorImpl::Autodiff::new_id(), std::vector< T >::push_back(), syten::STensorImpl::STensor::rank(), syten::STensorImpl::Autodiff::return_first_output_adjoint(), syten::STensorImpl::STensor::set_autodiff_node(), SYTEN_ASSERT_MSG, SYTEN_STENSOR_MAX_RANK, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visnz().

Referenced by syten::IPEPSv2::Lattice::get().

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