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

Function initClassicalState

quest/src/api/initialisations.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80void initClassicalState(Qureg qureg, qindex ind) {
81 validate_quregFields(qureg, __func__);
82 validate_basisStateIndex(qureg, ind, __func__);
83
84 // |ind><ind| = ||ind'>>
85 if (qureg.isDensityMatrix)
86 ind = util_getGlobalFlatIndex(qureg, ind, ind);
87
88 localiser_statevec_initClassicalState(qureg, ind);
89}
90
91
92void initDebugState(Qureg qureg) {

Callers 3

SECTIONFunction · 0.85
test_gates.cppFile · 0.85

Calls 4

validate_quregFieldsFunction · 0.85
validate_basisStateIndexFunction · 0.85
util_getGlobalFlatIndexFunction · 0.85

Tested by

no test coverage detected