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

Method execute_expectation_task

Extensions/PilotOSMachine/QPilotMachine.cpp:2799–2806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2797
2798#ifdef USE_CURL
2799ErrorCode QPilotMachine::execute_expectation_task(const CalcConfig &config, const std::vector<uint32_t> &qubits, std::vector<double>& result)
2800{
2801 if (m_imp_obj->init(m_pilot_url, m_log_cout))
2802 {
2803 return m_imp_obj->execute_expectation_task(config, qubits, result);
2804 }
2805 return ErrorCode::ERR_TCP_INIT_FATLT;
2806}
2807
2808//ErrorCode QPilotMachine::execute_expectation_task_vec(const CalcConfig& config, const std::vector<uint32_t>& qubits, std::vector<double>& result)
2809//{

Callers 1

real_chip_expectationMethod · 0.45

Calls 1

initMethod · 0.45

Tested by

no test coverage detected