MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / execute_single_amplitude_task

Method execute_single_amplitude_task

Extensions/PilotOSMachine/QPilotMachine.cpp:3117–3127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3115}
3116
3117ErrorCode QPilotMachine::execute_single_amplitude_task(const std::string& prog_str,
3118 const std::string& target_amplitude,
3119 Complex_& result,
3120 const uint32_t& cluster_id /*= ANY_CLUSTER_BACKEND*/)
3121{
3122 if (m_imp_obj->init(m_pilot_url, m_log_cout))
3123 {
3124 return m_imp_obj->execute_single_amplitude_task(prog_str, target_amplitude, result, cluster_id);
3125 }
3126 return ErrorCode::ERR_TCP_INIT_FATLT;
3127}
3128
3129ErrorCode QPilotMachine::execute_single_amplitude_task(const std::string& prog_str,
3130 const std::string& target_amplitude,

Callers 4

pMeasureBinindexMethod · 0.45
pMeasureDecindexMethod · 0.45
export_extension_classFunction · 0.45

Calls 1

initMethod · 0.45

Tested by

no test coverage detected