Functions for printing Pauli data structures.
More...
Functions for printing Pauli data structures.
◆ reportPauliStr()
- 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 484 of file paulis.cpp.
484 {
485
486
487 string indent = "";
488 print_elemsWithoutNewline(str, indent);
489
490
491 print_newlines();
492}
◆ reportPauliStrSum()
- 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 495 of file paulis.cpp.
495 {
496 validate_pauliStrSumFields(sum, __func__);
497 validate_numReportedNewlinesAboveZero(__func__);
498
499
500 qindex numStrBytes = sum.numTerms * sizeof *sum.strings;
501 qindex numCoeffBytes = sum.numTerms * sizeof *sum.coeffs;
502 qindex numStrucBytes = sizeof(sum);
503
504
505
506 qindex numTotalBytes = numStrBytes + numCoeffBytes + numStrucBytes;
507
508 print_header(sum, numTotalBytes);
509 print_elems(sum);
510
511
512 print_oneFewerNewlines();
513}