Template Function Pennylane::Util::createNonTrivialState¶
Defined in File TestHelpers.hpp
Function Documentation¶
-
template<class StateVectorT>
auto Pennylane::Util::createNonTrivialState(std::size_t num_qubits = 3)¶ Create non-trivial statevector data using the provided StateVectorT.
- Template Parameters
StateVectorT – Backend used to generate data
- Parameters
num_qubits – number of qubits
- Returns
std::vector<typename StateVectorT::ComplexT>>
api/function_TestHelpers_8hpp_1a31373e5ec4fd73c369ca6f6c94aaf13b
Download Python script
Download Notebook
View on GitHub