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

Function populateDensityMatrixColumnLabels

quest/src/core/printer.cpp:1060–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058
1059
1060void populateDensityMatrixColumnLabels(vector<string> &leftColLabels, vector<string> &rightColLabels, Qureg qureg, MatrixQuadrantInds inds) {
1061
1062 leftColLabels.resize(inds.numUpperLeftCols);
1063 rightColLabels.resize(inds.numUpperRightCols);
1064
1065 int lastRank = -1;
1066 setColumnLabelsToRanks(leftColLabels, lastRank, inds.leftStartCol, qureg);
1067 setColumnLabelsToRanks(rightColLabels, lastRank, inds.rightStartCol, qureg);
1068}
1069
1070
1071// T can be 2D types, e.g. Qureg (.isDensityMatrix=1), CompMatr/1/2, SuperOp.

Callers 1

printDenseSquareMatrixFunction · 0.85

Calls 1

setColumnLabelsToRanksFunction · 0.85

Tested by

no test coverage detected