MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / execute_error_mitigation

Method execute_error_mitigation

Core/QuantumCloud/QCloudMachineImp.cpp:576–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574
575
576void 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
597void QCloudMachineImp::read_out_error_mitigation(
598 std::map<std::string, double>& result,

Callers 2

pec_error_mitigationMethod · 0.80
zne_error_mitigationMethod · 0.80

Calls 2

insertMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected