| 21 | USING_QPANDA |
| 22 | using namespace std; |
| 23 | QMeasure QPanda::Measure(Qubit * target_qubit,ClassicalCondition classical_cond) |
| 24 | { |
| 25 | auto target_cbit = classical_cond.getExprPtr()->getCBit(); |
| 26 | if (nullptr == target_cbit) |
| 27 | { |
| 28 | QCERR("param error"); |
| 29 | throw invalid_argument("param error"); |
| 30 | } |
| 31 | QMeasure measure(target_qubit, target_cbit); |
| 32 | return measure; |
| 33 | } |
| 34 | |
| 35 | QMeasure QPanda::Measure(Qubit * target_qubit, CBit* classical_cond) |
| 36 | { |