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

Function demo_auto

examples/isolated/reporting_quregs.cpp:105–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105void demo_auto() {
106
107 reportStr("\n[auto (statevector)]");
108
109 Qureg pure = createQureg(10);
110 reportQuregParams(pure);
111 reportQureg(pure);
112 destroyQureg(pure);
113
114 reportStr("\n[auto (density matrix)]");
115
116 Qureg mixed = createDensityQureg(10);
117 reportQuregParams(mixed);
118 reportQureg(mixed);
119 destroyQureg(mixed);
120}
121
122
123void demo_all() {

Callers 1

mainFunction · 0.70

Calls 6

reportStrFunction · 0.85
createQuregFunction · 0.85
reportQuregParamsFunction · 0.85
reportQuregFunction · 0.85
destroyQuregFunction · 0.85
createDensityQuregFunction · 0.85

Tested by

no test coverage detected