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

Function localiser_statevec_calcTotalProb

quest/src/core/localiser.cpp:1847–1859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845
1846
1847qreal localiser_statevec_calcTotalProb(Qureg qureg) {
1848
1849 // not restricted to statevecs; density matrices use
1850 // a different routine for calcTotalProb, but they use
1851 // this routine for calcHilbertSchmidtDistance
1852
1853 qreal prob = accel_statevec_calcTotalProb_sub(qureg);
1854
1855 if (qureg.isDistributed)
1856 comm_reduceReal(&prob);
1857
1858 return prob;
1859}
1860
1861
1862qreal localiser_densmatr_calcTotalProb(Qureg qureg) {

Callers 2

calcTotalProbFunction · 0.85
calcPurityFunction · 0.85

Calls 2

comm_reduceRealFunction · 0.85

Tested by

no test coverage detected