Template Function Pennylane::Util::createNonTrivialState

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>>