Template Class TensornetBase

Inheritance Relationships

Derived Types

Class Documentation

template<class PrecisionT, class Derived>
class TensornetBase

CRTP-enabled base class for cutensornet.

Template Parameters
  • PrecisionT – Floating point precision.

  • Derived – Derived class to instantiate using CRTP.

Subclassed by Pennylane::LightningTensor::TNCuda::TNCudaBase< Precision, MPSTNCuda< Precision > >, Pennylane::LightningTensor::TNCuda::TNCudaBase< PrecisionT, Derived >

Public Functions

TensornetBase() = delete
inline explicit TensornetBase(const std::size_t numQubits)
~TensornetBase() = default
inline auto getQubitDims() const -> const std::vector<std::size_t>&

Get dimension of each qubit.

Returns

const std::vector<std::size_t> &

inline auto getQubitDims() -> std::vector<std::size_t>&

Get dimension of each qubit.

Returns

std::vector<std::size_t> &

inline auto getNumQubits() const -> std::size_t

Get the number of qubits of the simulated system.

Returns

std::size_t