Template Class TensorProdObs¶
Defined in File ObservablesLQubit.hpp
Class Documentation¶
-
template<class StateVectorT>
class TensorProdObs : public TensorProdObsBase<StateVectorT>¶ Final class for TensorProdObs observables.
- Template Parameters
StateVectorT – State vector class.
Public Types
-
using PrecisionT = typename StateVectorT::PrecisionT¶
Public Functions
Public Static Functions
Convenient wrapper for the constructor as the constructor does not convert the std::shared_ptr with a derived class correctly.
This function is useful as std::make_shared does not handle brace-enclosed initializer list correctly.
- Parameters
obs – List of observables
api/classPennylane_1_1LightningQubit_1_1Observables_1_1TensorProdObs
Download Python script
Download Notebook
View on GitHub