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

Function applyHadamard

quest/src/api/operations.cpp:597–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595extern "C" {
596
597void applyHadamard(Qureg qureg, int target) {
598 validate_quregFields(qureg, __func__);
599 validate_target(qureg, target, __func__);
600
601 // harmlessly re-validates
602 applyMultiStateControlledHadamard(qureg, nullptr, nullptr, 0, target);
603}
604
605void applyControlledHadamard(Qureg qureg, int control, int target) {
606 validate_quregFields(qureg, __func__);

Callers 3

mainFunction · 0.85
mainFunction · 0.85

Calls 3

validate_quregFieldsFunction · 0.85
validate_targetFunction · 0.85

Tested by

no test coverage detected