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

Method get_used_cbits

Core/QuantumCircuit/QProgram.cpp:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111size_t QProg::get_used_cbits(std::vector<ClassicalCondition>& cbit_vector)
112{
113 if (!m_quantum_program)
114 {
115 QCERR("Unknown internal error");
116 throw runtime_error("Unknown internal error");
117 }
118 return m_quantum_program->get_used_cbits(cbit_vector);
119}
120
121size_t QProg::get_qgate_num()
122{

Callers 9

export_core_classFunction · 0.80
TESTFunction · 0.80
pec_error_mitigationMethod · 0.80
zne_error_mitigationMethod · 0.80
transformMethod · 0.80
remapMethod · 0.80

Calls 2

push_backMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64