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

Function mem_canSuperOpFitInMemory

quest/src/core/memory.cpp:381–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380
381bool mem_canSuperOpFitInMemory(int numQubits, qindex numBytesPerNode) {
382
383 // superoperators are square-bigger than their constituent dense matrices, and are never distributed
384 int numMatrixQubits = 2 * numQubits;
385 int numNodes = 1;
386 bool isDense = true;
387 return mem_canMatrixFitInMemory(numMatrixQubits, isDense, numNodes, numBytesPerNode);
388}
389
390
391bool mem_canPauliStrSumFitInMemory(qindex numTerms, qindex numBytesPerNode) {

Callers 2

Calls 1

mem_canMatrixFitInMemoryFunction · 0.85

Tested by

no test coverage detected