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

Function applyControlledRotateAroundAxis

quest/src/api/operations.cpp:1182–1188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1180}
1181
1182void applyControlledRotateAroundAxis(Qureg qureg, int ctrl, int targ, qreal angle, qreal axisX, qreal axisY, qreal axisZ) {
1183 validate_quregFields(qureg, __func__);
1184 validate_controlAndTarget(qureg, ctrl, targ, __func__);
1185 validate_rotationAxisNotZeroVector(axisX, axisY, axisZ, __func__);
1186
1187 applyMultiStateControlledRotateAroundAxis(qureg, &ctrl, nullptr, 1, targ, angle, axisX, axisY, axisZ);
1188}
1189
1190void applyMultiControlledRotateAroundAxis(Qureg qureg, int* ctrls, int numCtrls, int targ, qreal angle, qreal axisX, qreal axisY, qreal axisZ) {
1191 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Tested by

no test coverage detected