Class LightningSimulator

Inheritance Relationships

Base Type

  • public Catalyst::Runtime::QuantumDevice

Class Documentation

class LightningSimulator : public Catalyst::Runtime::QuantumDevice

Public Functions

inline explicit LightningSimulator(const std::string &kwargs = "{}")
~LightningSimulator() override = default
void SetDevicePRNG(std::mt19937 *gen) override
void SetState(DataView<std::complex<double>, 1> &state, std::vector<QubitIdType> &wires) override
void SetBasisState(DataView<int8_t, 1> &n, std::vector<QubitIdType> &wires) override
QUANTUM_DEVICE_DEL_DECLARATIONS(LightningSimulator)
auto CacheManagerInfo() -> std::tuple<size_t, size_t, size_t, std::vector<std::string>, std::vector<ObsIdType>>
auto GenerateSamplesMetropolis(size_t shots) -> std::vector<size_t>
auto GenerateSamples(size_t shots) -> std::vector<size_t>

Public Members

QUANTUM_DEVICE_RT_DECLARATIONS
QUANTUM_DEVICE_QIS_DECLARATIONS