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

Function rightapplyPauliStr

quest/src/api/multiplication.cpp:448–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448void rightapplyPauliStr(Qureg qureg, PauliStr str) {
449 validate_quregFields(qureg, __func__);
450 validate_quregIsDensityMatrix(qureg, __func__);
451 validate_pauliStrTargets(qureg, str, __func__);
452
453 qcomp factor = paulis_getSignOfPauliStrConj(str); // undo transpose
454 str = paulis_getShiftedPauliStr(str, qureg.numQubits);
455 localiser_statevec_anyCtrlPauliTensor(qureg, {}, {}, str, factor);
456}
457
458} // end de-mangler
459

Callers 1

rightapplyMultiQubitNotFunction · 0.85

Tested by

no test coverage detected