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

Function setToDebugState

tests/utils/qmatrix.cpp:227–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void setToDebugState(qmatrix &m) {
228 DEMAND( !m.empty() );
229
230 size_t i = 0;
231
232 // iterate column-wise
233 for (size_t c=0; c<m.size(); c++) {
234 for (size_t r=0; r<m.size(); r++) {
235 m[r][c] = qcomp(2*i/10., (2*i+1)/10.);
236 i++;
237 }
238 }
239}
240
241
242/*

Callers 5

DYNAMIC_SECTIONFunction · 0.50
DYNAMIC_SECTIONFunction · 0.50
SECTIONFunction · 0.50
SECTIONFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected