Template Class NamedObsTNCuda¶
Defined in File ObservablesTNCuda.hpp
Inheritance Relationships¶
Base Type¶
public Pennylane::LightningTensor::TNCuda::Observables::ObservableTNCuda< TensorNetT >
(Template Class ObservableTNCuda)
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.
api/classPennylane_1_1LightningTensor_1_1TNCuda_1_1Observables_1_1NamedObsTNCuda
Download Python script
Download Notebook
View on GitHub