Template Class HermitianObsMPI

Inheritance Relationships

Base Type

  • public HermitianObsBase< StateVectorT >

Class Documentation

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

Class models arbitrary Hermitian observables.

Public Types

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

Public Functions

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

Create Hermitian observable.

Parameters
  • matrix – Matrix in row major format.

  • wires – Wires the observable applies to.

inline auto getObsName() const -> std::string final