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

Function applyControlledHadamard

quest/src/api/operations.cpp:605–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605void applyControlledHadamard(Qureg qureg, int control, int target) {
606 validate_quregFields(qureg, __func__);
607 validate_controlAndTarget(qureg, control, target, __func__);
608
609 // harmlessly re-validates
610 applyMultiStateControlledHadamard(qureg, &control, nullptr, 1, target);
611}
612
613void applyMultiControlledHadamard(Qureg qureg, int* controls, int numControls, int target) {
614 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 3

validate_quregFieldsFunction · 0.85

Tested by

no test coverage detected