Template Class LocalTransitionKernel

Inheritance Relationships

Base Type

Class Documentation

template<typename fp_t>
class LocalTransitionKernel : public Pennylane::LightningQubit::Measures::TransitionKernel<fp_t>

Transition Kernel for a ‘SpinFlip’ local transition between states.

This class implements a local transition kernel for a spin flip operation. It goes about this by generating a random qubit site and then generating a random number to determine the new bit at that qubit site.

Template Parameters

fp_t – Floating point precision of underlying measurements.

Public Functions

inline explicit LocalTransitionKernel(std::size_t num_qubits)
inline virtual std::pair<std::size_t, fp_t> operator()(std::size_t init_idx) final