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

Method init

Extensions/PilotOSMachine/QPilotOSMachine.cpp:60–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void QPilotOSMachine::init()
61{
62 PTraceInfo("***************** On QPilotOSMachine::init for mode: " << m_machine_type << " *****************\n"
63 << g_version << "\n");
64
65 if (m_machine_type == "Pilot")
66 {
67 PTraceError("Error: faile to init QPilotOSMachine for Pilot model, no available parameters.");
68 return;
69 }
70
71 m_cpu_machine = new(std::nothrow) QPanda::CPUQVM;
72 m_cpu_machine->init();
73 _start();
74}
75
76std::string QPilotOSMachine::OutputVersionInfo()
77{

Callers 5

init_configMethod · 0.45
tcp_recvMethod · 0.45
pMeasureBinindexMethod · 0.45
pMeasureDecindexMethod · 0.45
pmeasure_subsetMethod · 0.45

Calls 3

set_output_logMethod · 0.80
emptyMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected