Template Function Pennylane::LightningQubit::Measures::kernel_factory¶
Defined in File TransitionKernels.hpp
Function Documentation¶
-
template<typename fp_t>
std::unique_ptr<TransitionKernel<fp_t>> Pennylane::LightningQubit::Measures::kernel_factory(const TransitionKernelType kernel_type, const std::complex<fp_t> *sv, std::size_t num_qubits)¶ Factory function to create a transition kernel.
- Parameters
kernel_type – Type of transition kernel to create
sv – pointer to the statevector data
num_qubits – number of qubits
- Template Parameters
fp_t – Floating point precision of underlying measurements.
- Returns
std::unique_ptr of the transition kernel
api/function_TransitionKernels_8hpp_1aa1193c05763f0b67bac99b82c357e2af
Download Python script
Download Notebook
View on GitHub