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

Method process

Extensions/VirtualZTransfer/VirtualZTransfer.cpp:550–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550void VirtualZTransfer::process(const bool on_travel_end /*= false*/)
551{
552 m_finished_job_cnt = 0;
553
554 for (const auto& item : m_cur_gates_buffer)
555 {
556 //create thread process
557 //process_single_gate(item.first, on_travel_end);
558 m_thread_pool.append(std::bind(&VirtualZTransfer::process_single_gate, this, item.first, on_travel_end));
559 }
560
561 while (m_finished_job_cnt != m_cur_gates_buffer.size()) { std::this_thread::sleep_for(std::chrono::milliseconds(100)); }
562
563 output_new_prog(on_travel_end);
564}
565
566double VirtualZTransfer::get_single_angle_parameter(const pOptimizerNodeInfo& node)
567{

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected