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

Function initZeroState

quest/src/api/initialisations.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50void initZeroState(Qureg qureg) {
51 validate_quregFields(qureg, __func__);
52
53 // |0> = |0><0|
54 qindex ind = 0;
55 localiser_statevec_initClassicalState(qureg, ind);
56}
57
58
59void initPlusState(Qureg qureg) {

Calls 2

validate_quregFieldsFunction · 0.85

Tested by

no test coverage detected