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

Function initArbitraryPureState

quest/src/api/initialisations.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98
99void initArbitraryPureState(Qureg qureg, qcomp* amps) {
100 validate_quregFields(qureg, __func__);
101
102 // set qureg = |amps> or |amps><amps|
103 (qureg.isDensityMatrix)?
104 localiser_densmatr_initArbitraryPureState(qureg, amps):
105 localiser_statevec_initArbitraryPureState(qureg, amps);
106}
107
108
109void initArbitraryMixedState(Qureg qureg, qcomp** amps) {

Callers 2

SECTIONFunction · 0.85

Tested by

no test coverage detected