QPanda3
0.1.0
Supported by OriginQ
|
Public Member Functions | |
None | __init__ (self) |
init(self: qcloud.QCloudOptions) -> None | |
int | get_custom_option (self, str arg0) |
get_custom_option(*args, **kwargs) Overloaded function. | |
float | get_custom_option (self, str arg0) |
get_custom_option(*args, **kwargs) Overloaded function. | |
str | get_custom_option (self, str arg0) |
get_custom_option(*args, **kwargs) Overloaded function. | |
bool | get_custom_option (self, str arg0) |
get_custom_option(*args, **kwargs) Overloaded function. | |
dict[str, int|float|str|bool] | get_custom_options (self) |
get_custom_options(self: qcloud.QCloudOptions) -> dict[str, Union[int, float, str, bool]] | |
bool | has_custom_option (self, str arg0) |
has_custom_option(self: qcloud.QCloudOptions, arg0: str) -> bool | |
bool | is_amend (self) |
is_amend(self: qcloud.QCloudOptions) -> bool | |
bool | is_mapping (self) |
is_mapping(self: qcloud.QCloudOptions) -> bool | |
bool | is_optimization (self) |
is_optimization(self: qcloud.QCloudOptions) -> bool | |
None | print (self) |
print(self: qcloud.QCloudOptions) -> None | |
None | set_amend (self, bool arg0) |
set_amend(self: qcloud.QCloudOptions, arg0: bool) -> None | |
None | set_custom_option (self, str arg0, int|float|str|bool arg1) |
set_custom_option(self: qcloud.QCloudOptions, arg0: str, arg1: Union[int, float, str, bool]) -> None | |
None | set_mapping (self, bool arg0) |
set_mapping(self: qcloud.QCloudOptions, arg0: bool) -> None | |
None | set_optimization (self, bool arg0) |
set_optimization(self: qcloud.QCloudOptions, arg0: bool) -> None | |
None pyqpanda3.qcloud.QCloudOptions.__init__ | ( | self | ) |
init(self: qcloud.QCloudOptions) -> None
Default constructor for QCloudOptions.
Initializes all options to their default values.
int pyqpanda3.qcloud.QCloudOptions.get_custom_option | ( | self, | |
str | arg0 ) |
get_custom_option(*args, **kwargs) Overloaded function.
@brief Retrieves a custom option by key as an integer value. @param[in] key The key of the custom option. @return The value of the custom option as an integer.
@brief Retrieves a custom option by key as a double value. @param[in] key The key of the custom option. @return The value of the custom option as a double.
@brief Retrieves a custom option by key as a string value. @param[in] key The key of the custom option. @return The value of the custom option as a string.
@brief Retrieves a custom option by key as a boolean value. @param[in] key The key of the custom option. @return The value of the custom option as a boolean.
float pyqpanda3.qcloud.QCloudOptions.get_custom_option | ( | self, | |
str | arg0 ) |
get_custom_option(*args, **kwargs) Overloaded function.
@brief Retrieves a custom option by key as an integer value. @param[in] key The key of the custom option. @return The value of the custom option as an integer.
@brief Retrieves a custom option by key as a double value. @param[in] key The key of the custom option. @return The value of the custom option as a double.
@brief Retrieves a custom option by key as a string value. @param[in] key The key of the custom option. @return The value of the custom option as a string.
@brief Retrieves a custom option by key as a boolean value. @param[in] key The key of the custom option. @return The value of the custom option as a boolean.
str pyqpanda3.qcloud.QCloudOptions.get_custom_option | ( | self, | |
str | arg0 ) |
get_custom_option(*args, **kwargs) Overloaded function.
@brief Retrieves a custom option by key as an integer value. @param[in] key The key of the custom option. @return The value of the custom option as an integer.
@brief Retrieves a custom option by key as a double value. @param[in] key The key of the custom option. @return The value of the custom option as a double.
@brief Retrieves a custom option by key as a string value. @param[in] key The key of the custom option. @return The value of the custom option as a string.
@brief Retrieves a custom option by key as a boolean value. @param[in] key The key of the custom option. @return The value of the custom option as a boolean.
bool pyqpanda3.qcloud.QCloudOptions.get_custom_option | ( | self, | |
str | arg0 ) |
get_custom_option(*args, **kwargs) Overloaded function.
@brief Retrieves a custom option by key as an integer value. @param[in] key The key of the custom option. @return The value of the custom option as an integer.
@brief Retrieves a custom option by key as a double value. @param[in] key The key of the custom option. @return The value of the custom option as a double.
@brief Retrieves a custom option by key as a string value. @param[in] key The key of the custom option. @return The value of the custom option as a string.
@brief Retrieves a custom option by key as a boolean value. @param[in] key The key of the custom option. @return The value of the custom option as a boolean.
dict[str, int | float | str | bool] pyqpanda3.qcloud.QCloudOptions.get_custom_options | ( | self | ) |
get_custom_options(self: qcloud.QCloudOptions) -> dict[str, Union[int, float, str, bool]]
Retrieves all custom options.
bool pyqpanda3.qcloud.QCloudOptions.has_custom_option | ( | self, | |
str | arg0 ) |
has_custom_option(self: qcloud.QCloudOptions, arg0: str) -> bool
Checks if a custom option with the given key exists.
[in] | key | The key of the custom option. |
bool pyqpanda3.qcloud.QCloudOptions.is_amend | ( | self | ) |
is_amend(self: qcloud.QCloudOptions) -> bool
Checks whether amendment is enabled.
bool pyqpanda3.qcloud.QCloudOptions.is_mapping | ( | self | ) |
is_mapping(self: qcloud.QCloudOptions) -> bool
Checks whether mapping is enabled.
bool pyqpanda3.qcloud.QCloudOptions.is_optimization | ( | self | ) |
is_optimization(self: qcloud.QCloudOptions) -> bool
Checks whether optimization is enabled.
None pyqpanda3.qcloud.QCloudOptions.print | ( | self | ) |
print(self: qcloud.QCloudOptions) -> None
Prints the current settings of the options.
None pyqpanda3.qcloud.QCloudOptions.set_amend | ( | self, | |
bool | arg0 ) |
set_amend(self: qcloud.QCloudOptions, arg0: bool) -> None
Sets whether amendment is enabled.
[in] | is_amend | A boolean indicating whether amendment is enabled. |
None pyqpanda3.qcloud.QCloudOptions.set_custom_option | ( | self, | |
str | arg0, | ||
int | float | str | bool | arg1 ) |
set_custom_option(self: qcloud.QCloudOptions, arg0: str, arg1: Union[int, float, str, bool]) -> None
Sets a custom option with a given key and value.
[in] | key | The key for the custom option. |
[in] | value | The value for the custom option, which can be int, double, string, or bool. |
None pyqpanda3.qcloud.QCloudOptions.set_mapping | ( | self, | |
bool | arg0 ) |
set_mapping(self: qcloud.QCloudOptions, arg0: bool) -> None
Sets whether mapping is enabled.
[in] | is_mapping | A boolean indicating whether mapping is enabled. |
None pyqpanda3.qcloud.QCloudOptions.set_optimization | ( | self, | |
bool | arg0 ) |
set_optimization(self: qcloud.QCloudOptions, arg0: bool) -> None
Sets whether optimization is enabled.
[in] | is_optimization | A boolean indicating whether optimization is enabled. |