| 217 | |
| 218 | |
| 219 | void printDistributionInfo(Qureg qureg) { |
| 220 | |
| 221 | using namespace printer_substrings; |
| 222 | |
| 223 | // not applicable when not distributed |
| 224 | string nodesStr = na; |
| 225 | string ampsStr = na; |
| 226 | string colsStr = na; |
| 227 | |
| 228 | // 2^N = M per node |
| 229 | if (qureg.isDistributed) { |
| 230 | nodesStr = bt + printer_toStr(qureg.logNumNodes) + eq + printer_toStr(qureg.numNodes); |
| 231 | ampsStr = bt + printer_toStr(qureg.logNumAmpsPerNode) + eq + printer_toStr(qureg.numAmpsPerNode) + pn; |
| 232 | if (qureg.isDensityMatrix) |
| 233 | colsStr = bt + printer_toStr(qureg.logNumColsPerNode) + eq + printer_toStr(powerOf2(qureg.logNumColsPerNode)) + pn; |
| 234 | } |
| 235 | |
| 236 | print_table( |
| 237 | "distribution", { |
| 238 | {"numNodes", nodesStr}, |
| 239 | {"numCols", colsStr}, |
| 240 | {"numAmps", ampsStr}, |
| 241 | }); |
| 242 | } |
| 243 | |
| 244 | |
| 245 | void printMemoryInfo(Qureg qureg) { |
no test coverage detected