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

Function applyQubitMeasurement

quest/src/api/operations.cpp:1601–1607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1599extern "C" {
1600
1601int applyQubitMeasurement(Qureg qureg, int target) {
1602 validate_quregFields(qureg, __func__);
1603 validate_target(qureg, target, __func__);
1604
1605 qreal prob = 0; // ignored
1606 return applyQubitMeasurementAndGetProb(qureg, target, &prob); // harmlessly re-validates
1607}
1608
1609int applyQubitMeasurementAndGetProb(Qureg qureg, int target, qreal* probability) {
1610 validate_quregFields(qureg, __func__);

Callers 2

SECTIONFunction · 0.85
DYNAMIC_SECTIONFunction · 0.85

Calls 3

validate_quregFieldsFunction · 0.85
validate_targetFunction · 0.85

Tested by

no test coverage detected