| 574 | |
| 575 | |
| 576 | void QCloudMachineImp::execute_error_mitigation( |
| 577 | std::vector<double>& result, |
| 578 | int shots, |
| 579 | RealChipType chip_id, |
| 580 | std::vector<std::string> expectations, |
| 581 | const std::vector<double>& noise_strength, |
| 582 | EmMethod qem_method) |
| 583 | { |
| 584 | rabbit::array noise_strength_array; |
| 585 | object_append_em_args(chip_id, expectations, noise_strength, noise_strength_array, qem_method); |
| 586 | |
| 587 | if (qem_method == EmMethod::ZNE) |
| 588 | m_object.insert("noiseStrength", noise_strength_array); |
| 589 | |
| 590 | object_append("measureType", (size_t)ClusterTaskType::CLUSTER_MEASURE); |
| 591 | object_append("QMachineType", (size_t)CloudQMchineType::REAL_CHIP); |
| 592 | object_append("shot", (size_t)shots); |
| 593 | |
| 594 | return sumbit_and_query(m_object.str(), result); |
| 595 | } |
| 596 | |
| 597 | void QCloudMachineImp::read_out_error_mitigation( |
| 598 | std::map<std::string, double>& result, |
no test coverage detected