2 #include "qcor_qsim.hpp"
16 std::shared_ptr<Operator> stretchObservable(
Operator *obs)
const;
17 double computeEnergy(
double phaseVal)
const;
20 virtual bool initialize(
const HeterogeneousMap ¶ms)
override;
21 virtual QuantumSimulationResult
23 virtual const std::string name()
const override {
return "iqpe"; }
24 virtual const std::string description()
const override {
return ""; }
26 static std::shared_ptr<CompositeInstruction> constructQpeTrotterCircuit(
27 std::shared_ptr<Operator> obs,
double trotter_step,
size_t nbQubits,
28 double compensatedAncRot = 0,
int steps = 1,
int k = 1,
double omega = 0,
bool cau_opt =
true);
31 std::shared_ptr<CompositeInstruction>
32 constructQpeCircuit(std::shared_ptr<Operator> obs,
int k,
double omega,
33 bool measure =
true)
const;
40 HamOpConverter ham_converter;