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

Function applyMultiStateControlledT

quest/src/api/operations.cpp:570–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568}
569
570void applyMultiStateControlledT(Qureg qureg, int* controls, int* states, int numControls, int target) {
571
572 DiagMatr1 matr = getDiagMatr1({1, 1/std::sqrt(2) + 1_i/std::sqrt(2)});
573 validateAndApplyAnyCtrlAnyTargUnitaryMatrix(qureg, controls, states, numControls, &target, 1, matr, __func__);
574}
575
576} // end de-mangler
577

Callers 3

applyTFunction · 0.85
applyControlledTFunction · 0.85
applyMultiControlledTFunction · 0.85

Tested by

no test coverage detected