MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / mem_getMaxNumSuperOpQubitsWhichCanFitInMemory

Function mem_getMaxNumSuperOpQubitsWhichCanFitInMemory

quest/src/core/memory.cpp:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81int mem_getMaxNumSuperOpQubitsWhichCanFitInMemory(qindex memBytesPerNode) {
82
83 // superoperators have square-bigger superoperators than dense matrices, and are never distributed
84 int numNodes = 1;
85 bool isDense = true;
86 bool hasBuffer = false;
87 bool isSuperOp = true;
88 return getMaxNumQubitsWhichCanFitInMemory(isDense, numNodes, hasBuffer, isSuperOp, memBytesPerNode);
89}
90
91
92int mem_getMinNumQubitsForDistribution(int numNodes) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected