| 1845 | |
| 1846 | |
| 1847 | qreal 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 | |
| 1862 | qreal localiser_densmatr_calcTotalProb(Qureg qureg) { |
no test coverage detected