class QPanda::JsonConfigParam¶
Detailed Documentation¶
json configuration parameter
Methods¶
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
read topological structure from json config file
Parameters:
const | rapidjson::Value& json value |
int& | qubit number |
std::vector<std::vector<int>> | qubit matrix |
Returns:
bool
load quantum circuit topological structure