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