Template Class NamedObsTNCuda

Inheritance Relationships

Base Type

Class Documentation

template<class TensorNetT>
class NamedObsTNCuda : public Pennylane::LightningTensor::TNCuda::Observables::ObservableTNCuda<TensorNetT>

Named observables (PauliX, PauliY, PauliZ, etc.)

Template Parameters

TensorNetT – tensor network class.

Public Types

using BaseType = ObservableTNCuda<TensorNetT>
using PrecisionT = typename TensorNetT::PrecisionT
using ComplexT = typename TensorNetT::ComplexT

Public Functions

inline NamedObsTNCuda(std::string obs_name, std::vector<std::size_t> wires, std::vector<PrecisionT> params = {})

Construct a NamedObsTNCuda object, representing a given observable.

Parameters
  • obs_name – Name of the observable.

  • wires – Argument to construct wires.

  • params – Argument to construct parameters

inline virtual auto getObsName() const -> std::string override

Get the name of the observable.

inline virtual auto getWires() const -> std::vector<std::size_t> override

Get the wires the observable applies to.