Template Class HermitianObs

Inheritance Relationships

Base Type

  • public HermitianObsBase< StateVectorT >

Class Documentation

template<class StateVectorT>
class HermitianObs : public HermitianObsBase<StateVectorT>

Final class for Hermitian observables.

Template Parameters

StateVectorT – State vector class.

Public Types

using PrecisionT = typename StateVectorT::PrecisionT
using ComplexT = typename StateVectorT::ComplexT
using MatrixT = std::vector<ComplexT>

Public Functions

inline HermitianObs(MatrixT matrix, std::vector<std::size_t> wires)

Create an Hermitian observable.

Parameters
  • matrix – Matrix in row major format.

  • wires – Wires the observable applies to.