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

Method OriginCMem

Core/QuantumMachine/OriginClassicalSystem.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36OriginCMem::OriginCMem()
37{
38 size_t maxMem = 29;
39 for (auto i = 0U; i < maxMem; ++i)
40 {
41 auto _New_CBit =
42 CBitFactory::GetFactoryInstance().
43 CreateCBitFromName("c"+obj2str(i));
44 vecBit.push_back(_New_CBit);
45 }
46}
47
48size_t OriginCMem::get_capacity()
49{

Callers

nothing calls this directly

Calls 3

obj2strFunction · 0.85
CreateCBitFromNameMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected