Functions for printing Qureg states or reporting their configuration.
More...
Functions for printing Qureg states or reporting their configuration.
◆ reportQureg()
void reportQureg |
( |
Qureg | qureg | ) |
|
- Note
- Documentation for this function or struct is under construction!
- Warning
- This function has not yet been unit tested and may contain bugs. Please use with caution!
Definition at line 371 of file qureg.cpp.
371 {
372 validate_quregFields(qureg, __func__);
373 validate_numReportedNewlinesAboveZero(__func__);
374
375
376
377 size_t localMem = mem_getLocalQuregMemoryRequired(qureg.numAmpsPerNode);
378 if (qureg.isDistributed)
379 localMem *= 2;
380
381
382 localMem += sizeof(qureg);
383
384 print_header(qureg, localMem);
385 print_elems(qureg);
386
387
388 print_oneFewerNewlines();
389}
◆ reportQuregParams()
void reportQuregParams |
( |
Qureg | qureg | ) |
|
- Note
- Documentation for this function or struct is under construction!
- Warning
- This function has not yet been unit tested and may contain bugs. Please use with caution!
Definition at line 353 of file qureg.cpp.
353 {
354 validate_quregFields(qureg, __func__);
355 validate_numReportedNewlinesAboveZero(__func__);
356
357
358
359
360 print_label("Qureg");
361 printDeploymentInfo(qureg);
362 printDimensionInfo(qureg);
363 printDistributionInfo(qureg);
364 printMemoryInfo(qureg);
365
366
367 print_oneFewerNewlines();
368}