Template Class NamedObs

Inheritance Relationships

Base Type

  • public NamedObsBase< StateVectorT >

Class Documentation

template<typename StateVectorT>
class NamedObs : 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 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