Template Class NamedObs¶
Defined in File ObservablesKokkos.hpp
Class Documentation¶
-
template<class StateVectorT>
class NamedObs : public NamedObsBase<StateVectorT>¶ Final class for named observables (PauliX, PauliY, PauliZ, etc.)
- Template Parameters
StateVectorT – State vector class.
Public Types
-
using PrecisionT = typename StateVectorT::PrecisionT¶
Public Functions
-
inline NamedObs(std::string obs_name, std::vector<std::size_t> wires, std::vector<PrecisionT> params = {})¶
Construct a NamedObs object, representing a given observable.
- Parameters
obs_name – Name of the observable.
wires – Argument to construct wires.
params – Argument to construct parameters
api/classPennylane_1_1LightningKokkos_1_1Observables_1_1NamedObs
Download Python script
Download Notebook
View on GitHub