Template Function Pennylane::LightningQubit::Gates::AVXCommon::setValueOneTwo

Function Documentation

template<typename PrecisionT, 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.