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!
- See also
-
Definition at line 494 of file paulis.cpp.
494 {
495
496
497 string indent = "";
498 print_elemsWithoutNewline(str, indent);
499
500
501 print_newlines();
502}
◆ 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!
- See also
-
Definition at line 505 of file paulis.cpp.
505 {
506 validate_pauliStrSumFields(sum, __func__);
507 validate_numReportedNewlinesAboveZero(__func__);
508
509
510 qindex numStrBytes = sum.numTerms * sizeof *sum.strings;
511 qindex numCoeffBytes = sum.numTerms * sizeof *sum.coeffs;
512 qindex numStrucBytes = sizeof(sum);
513
514
515
516 qindex numTotalBytes = numStrBytes + numCoeffBytes + numStrucBytes;
517
518 print_header(sum, numTotalBytes);
519 print_elems(sum);
520
521
522 print_oneFewerNewlines();
523}