| 480 | } |
| 481 | |
| 482 | void QPanda::qFreeAll(QVec &qv) |
| 483 | { |
| 484 | if (nullptr == global_quantum_machine) |
| 485 | { |
| 486 | QCERR("global_quantum_machine init fail"); |
| 487 | throw init_fail("global_quantum_machine init fail"); |
| 488 | } |
| 489 | |
| 490 | global_quantum_machine->qFreeAll(qv); |
| 491 | return ; |
| 492 | } |
| 493 | |
| 494 | void QPanda::qFreeAll() |
| 495 | { |