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

Function rightapplyFullStateDiagMatrPower

quest/src/api/multiplication.cpp:325–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void rightapplyFullStateDiagMatrPower(Qureg qureg, FullStateDiagMatr matrix, qcomp exponent) {
326 validate_quregFields(qureg, __func__);
327 validate_quregIsDensityMatrix(qureg, __func__);
328 validate_matrixFields(matrix, __func__);
329 validate_matrixAndQuregAreCompatible(matrix, qureg, false, __func__); // matrix can be non-unitary
330 validate_matrixExpIsNonDiverging(matrix, exponent, __func__);
331
332 // rho -> rho matrix^exponent
333 bool leftMultiply = false;
334 bool rightMultiply = true;
335 bool rightConj = false;
336 localiser_densmatr_allTargDiagMatr(qureg, matrix, exponent, leftMultiply, rightMultiply, rightConj);
337}
338
339} // end de-mangler
340

Callers 2

SECTIONFunction · 0.85

Tested by

no test coverage detected