MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / reportMyStructs

Function reportMyStructs

examples/extended/dynamics.cpp:101–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 */
100
101void reportMyStructs(Qureg qureg, PauliStrSum hamil, PauliStrSum observ) {
102
103 setMaxNumReportedSigFigs(6); // sig-figs in scalars
104 setNumReportedNewlines(2); // spacing between reports
105 setReportedPauliChars(".XYZ"); // print I as .
106 setReportedPauliStrStyle(0); // print XYZ (0) or Z3 Y2 X1 (1)
107 setMaxNumReportedItems(8, 8); // show max 8 qureg amplitudes
108
109 reportStr("[Initial state]");
110 reportQureg(qureg);
111
112 setMaxNumReportedItems(0, 0); // show 0=all Pauli operators
113
114 reportStr("[Hamiltonian]");
115 reportPauliStrSum(hamil);
116
117 reportStr("[Observable]");
118 reportPauliStrSum(observ);
119}
120
121
122

Callers 1

mainFunction · 0.70

Calls 8

setMaxNumReportedSigFigsFunction · 0.85
setNumReportedNewlinesFunction · 0.85
setReportedPauliCharsFunction · 0.85
setReportedPauliStrStyleFunction · 0.85
setMaxNumReportedItemsFunction · 0.85
reportStrFunction · 0.85
reportQuregFunction · 0.85
reportPauliStrSumFunction · 0.85

Tested by

no test coverage detected