Template Function Pennylane::LightningQubit::Measures::kernel_factory

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