Template Class NamedObsMPI¶
Defined in File ObservablesGPUMPI.hpp
Class Documentation¶
-
template<typename StateVectorT>
class NamedObsMPI : public NamedObsBase<StateVectorT>¶ Class models named observables (PauliX, PauliY, PauliZ, etc.)
- Template Parameters
StateVectorT – State vector class.
Public Types
-
using PrecisionT = typename StateVectorT::PrecisionT¶
Public Functions
-
inline NamedObsMPI(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_1LightningGPU_1_1Observables_1_1NamedObsMPI
Download Python script
Download Notebook
View on GitHub