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 264 of file paulis.cpp.
264 {
265
266
267 string indent = "";
268 print_elemsWithoutNewline(str, indent);
269
270
271 print_newlines();
272}
◆ 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 275 of file paulis.cpp.
275 {
276 validate_pauliStrSumFields(sum, __func__);
277 validate_numReportedNewlinesAboveZero(__func__);
278
279
280 qindex numStrBytes = sum.numTerms * sizeof *sum.strings;
281 qindex numCoeffBytes = sum.numTerms * sizeof *sum.coeffs;
282 qindex numStrucBytes = sizeof(sum);
283
284
285
286 qindex numTotalBytes = numStrBytes + numCoeffBytes + numStrucBytes;
287
288 print_header(sum, numTotalBytes);
289 print_elems(sum);
290
291
292 print_oneFewerNewlines();
293}