class QPanda::QuantumChipConfig¶
Overview¶
#include <JsonConfigParam.h> class QuantumChipConfig { public: // methods bool load_config(const std::string config_data = CONFIG_PATH); bool read_adjacent_matrix( size_t& qubit_num, std::vector<std::vector<int>>& qubit_matrix ); std::vector<int> read_high_frequency_qubit(); std::vector<double> read_compensate_angle(); void read_compensate_angle(std::map<std::pair<int, int>, std::vector<double>>&); size_t get_double_gate_clock(const size_t default_val = 3); size_t get_single_gate_clock(const size_t default_val = 1); };
Detailed Documentation¶
Methods¶
bool load_config(const std::string config_data = CONFIG_PATH)
Load config data.
Parameters:
const |
std::string It can be configuration file or configuration data, which can be distinguished by file suffix, so the configuration file must be end with “.json”, default is CONFIG_PATH |
Returns:
Return false if any error occurs, otherwise return true