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

Method OriginCMemv2

Core/QuantumMachine/OriginClassicalSystem.cpp:265–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263
264
265OriginCMemv2::OriginCMemv2(size_t maxMem)
266{
267 for (auto i = 0U; i < maxMem; ++i)
268 {
269 auto _New_CBit =
270 CBitFactory::GetFactoryInstance().
271 CreateCBitFromName("c" + obj2str(i));
272 vecBit.push_back(_New_CBit);
273 }
274}
275
276CBit* OriginCMemv2::Allocate_CBit()
277{

Callers

nothing calls this directly

Calls 3

obj2strFunction · 0.85
CreateCBitFromNameMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected