Template Function Pennylane::LightningQubit::Gates::AVXCommon::setValueOneTwo¶
Defined in File AVXUtil.hpp
Function Documentation¶
-
template<typename PrecisionT, std::size_t packed_size, typename Func>
auto Pennylane::LightningQubit::Gates::AVXCommon::setValueOneTwo(Func &&func) -> AVXIntrinsicType<PrecisionT, packed_size>¶ Repeat the value of the function twice.
As we treat a complex number as two real numbers, this helps when we multiply function outcomes to a AVX intrinsic type.
api/function_AVXUtil_8hpp_1a161e967423e7e56bfa16b3a00600a910
Download Python script
Download Notebook
View on GitHub