Template Function Pennylane::Util::createNonTrivialState¶
Defined in File TestHelpers.hpp
Function Documentation¶
-
template<class StateVectorT>
auto Pennylane::Util::createNonTrivialState(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_1a0b5b0791a043ed1d3f01498fa51bb180
Download Python script
Download Notebook
View on GitHub