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

Method noise_measure

Extensions/PilotOSMachine/QPilotOSMachine.cpp:1542–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540}
1541
1542std::map<std::string, double> QPilotOSMachine::noise_measure(QProg& prog, int shot)
1543{
1544 std::map<std::string, double> result;
1545 PilotQVM::ErrorCode m_error = m_pilot_machine->execute_noise_measure_task(
1546 convert_qprog_to_originir(prog, this),
1547 *m_noise_params,
1548 result,
1549 ANY_CLUSTER_BACKEND /*200*/,
1550 shot);
1551 if (m_error != PilotQVM::ErrorCode::NO_ERROR_FOUND)
1552 {
1553 QCERR_AND_THROW(run_fail, "QPILOTOS MACHINE ERROR");
1554 }
1555 return result;
1556}
1557
1558std::map<std::string, double> QPilotOSMachine::full_amplitude_measure(QProg&prog, int shot)
1559{

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected