QCOR
qsim_utils.hpp
1 #pragma once
2 #include "qcor_qsim.hpp"
3 
4 namespace qcor {
5 namespace QuaSiMo {
6 std::shared_ptr<CostFunctionEvaluator>
7 getEvaluator(Operator *observable, const HeterogeneousMap &params);
8 
9 // Implements Prony method for IQPE signal fitting.
10 // i.e. fit g(t) = sum a_i * exp(i * omega_i * t)
11 // Returns the vector of amplitude {a_i} and freq. {omega_i}
12 // Returns a vector of <Ampl, Freq> pair
13 using PronyResult =
14  std::vector<std::pair<std::complex<double>, std::complex<double>>>;
15 PronyResult pronyFit(const std::vector<std::complex<double>> &in_signal);
16 } // namespace QuaSiMo
17 } // namespace qcor
qcor
Definition: qcor_syntax_handler.cpp:15