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

Function applyRotateAroundAxis

quest/src/api/operations.cpp:1174–1180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172extern "C" {
1173
1174void applyRotateAroundAxis(Qureg qureg, int targ, qreal angle, qreal axisX, qreal axisY, qreal axisZ) {
1175 validate_quregFields(qureg, __func__);
1176 validate_target(qureg, targ, __func__);
1177 validate_rotationAxisNotZeroVector(axisX, axisY, axisZ, __func__);
1178
1179 applyMultiStateControlledRotateAroundAxis(qureg, nullptr, nullptr, 0, targ, angle, axisX, axisY, axisZ);
1180}
1181
1182void applyControlledRotateAroundAxis(Qureg qureg, int ctrl, int targ, qreal angle, qreal axisX, qreal axisY, qreal axisZ) {
1183 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Tested by

no test coverage detected