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

Function applyMultiStateControlledS

quest/src/api/operations.cpp:519–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void applyMultiStateControlledS(Qureg qureg, int* controls, int* states, int numControls, int target) {
520
521 DiagMatr1 matr = getDiagMatr1({1, 1_i});
522 validateAndApplyAnyCtrlAnyTargUnitaryMatrix(qureg, controls, states, numControls, &target, 1, matr, __func__);
523}
524
525} // end de-mangler
526

Callers 3

applySFunction · 0.85
applyControlledSFunction · 0.85
applyMultiControlledSFunction · 0.85

Tested by

no test coverage detected