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

Function localiser_densmatr_initArbitraryMixedState

quest/src/core/localiser.cpp:715–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713
714
715void localiser_densmatr_initArbitraryMixedState(Qureg qureg, qcomp** amps) {
716
717 /// @todo
718 /// the current invoked implementation of setAmps() is extraordinarily
719 /// inefficient in the full-Qureg regime. Fix setAmps(), then update this!
720
721 qindex startRow = 0;
722 qindex startCol = 0;
723 qindex numRows = powerOf2(qureg.numQubits);
724 qindex numCols = numRows;
725 localiser_densmatr_setAmps(amps, qureg, startRow, startCol, numRows, numCols);
726}
727
728
729void localiser_statevec_initUniformState(Qureg qureg, qcomp amp) {

Callers 1

initArbitraryMixedStateFunction · 0.85

Calls 2

powerOf2Function · 0.85

Tested by

no test coverage detected