Template Function Pennylane::LightningGPU::cuGates::getToffoli

Function Documentation

template<class CFP_t>
static constexpr auto Pennylane::LightningGPU::cuGates::getToffoli() -> std::vector<CFP_t>

Create a matrix representation of the Toffoli gate data in row-major format.

Template Parameters

CFP_t – Required precision of gate (float or double).

Returns

constexpr std::vector<CFP_t> Return constant expression of Toffoli gate data.