.. index:: pair: class; QPanda::QuantumChipConfig .. _doxid-class_q_panda_1_1_quantum_chip_config: class QPanda::QuantumChipConfig =============================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class QuantumChipConfig { public: // methods bool :ref:`load_config`(const std::string config_data = :ref:`CONFIG_PATH`); bool :target:`read_adjacent_matrix`( size_t& qubit_num, std::vector>& qubit_matrix ); std::vector :target:`read_high_frequency_qubit`(); std::vector :target:`read_compensate_angle`(); void :target:`read_compensate_angle`(std::map, std::vector>&); size_t :target:`get_double_gate_clock`(const size_t default_val = 3); size_t :target:`get_single_gate_clock`(const size_t default_val = 1); }; .. _details-class_q_panda_1_1_quantum_chip_config: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; load_config .. _doxid-group___utilities_1ga98c94cb9fb11e2b999839427de8903e8: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool load_config(const std::string config_data = :ref:`CONFIG_PATH`) Load config data. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - 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 .. rubric:: Returns: Return false if any error occurs, otherwise return true