QPanda3
0.1.0
Supported by OriginQ
|
Public Member Functions | |
None | __init__ (self) |
init(*args, **kwargs) Overloaded function. | |
None | __init__ (self, NOISE_MODEL arg0, list[float] arg1, list[float] arg2) |
init(*args, **kwargs) Overloaded function. | |
list[float] | get_double_params (self) |
get_double_params(self: qcloud.QCloudNoiseModel) -> list[float] | |
str | get_noise_model (self) |
get_noise_model(self: qcloud.QCloudNoiseModel) -> str | |
list[float] | get_single_params (self) |
get_single_params(self: qcloud.QCloudNoiseModel) -> list[float] | |
bool | is_enabled (self) |
is_enabled(self: qcloud.QCloudNoiseModel) -> bool | |
None | print (self) |
print(self: qcloud.QCloudNoiseModel) -> None | |
None | set_double_params (self, list[float] arg0) |
set_double_params(self: qcloud.QCloudNoiseModel, arg0: list[float]) -> None | |
None | set_single_params (self, list[float] arg0) |
set_single_params(self: qcloud.QCloudNoiseModel, arg0: list[float]) -> None | |
bool | __eq__ (self, QCloudNoiseModel arg0) |
eq(self: qcloud.QCloudNoiseModel, arg0: qcloud.QCloudNoiseModel) -> bool | |
bool | __ne__ (self, QCloudNoiseModel arg0) |
ne(self: qcloud.QCloudNoiseModel, arg0: qcloud.QCloudNoiseModel) -> bool | |
None pyqpanda3.qcloud.QCloudNoiseModel.__init__ | ( | self | ) |
init(*args, **kwargs) Overloaded function.
Default constructor for QCloudNoiseModel.
@brief Initializes a QCloudNoiseModel with a noise model and its parameters. @param[in] model The noise model. @param[in] single_p The single qubit noise parameters. @param[in] double_p The double qubit noise parameters.
None pyqpanda3.qcloud.QCloudNoiseModel.__init__ | ( | self, | |
NOISE_MODEL | arg0, | ||
list[float] | arg1, | ||
list[float] | arg2 ) |
init(*args, **kwargs) Overloaded function.
Default constructor for QCloudNoiseModel.
@brief Initializes a QCloudNoiseModel with a noise model and its parameters. @param[in] model The noise model. @param[in] single_p The single qubit noise parameters. @param[in] double_p The double qubit noise parameters.
bool pyqpanda3.qcloud.QCloudNoiseModel.__eq__ | ( | self, | |
QCloudNoiseModel | arg0 ) |
eq(self: qcloud.QCloudNoiseModel, arg0: qcloud.QCloudNoiseModel) -> bool
Compares two QCloudNoiseModel objects for equality.
bool pyqpanda3.qcloud.QCloudNoiseModel.__ne__ | ( | self, | |
QCloudNoiseModel | arg0 ) |
ne(self: qcloud.QCloudNoiseModel, arg0: qcloud.QCloudNoiseModel) -> bool
Compares two QCloudNoiseModel objects for inequality.
list[float] pyqpanda3.qcloud.QCloudNoiseModel.get_double_params | ( | self | ) |
get_double_params(self: qcloud.QCloudNoiseModel) -> list[float]
Returns the double qubit noise parameters.
str pyqpanda3.qcloud.QCloudNoiseModel.get_noise_model | ( | self | ) |
get_noise_model(self: qcloud.QCloudNoiseModel) -> str
Returns the current noise model as a string.
list[float] pyqpanda3.qcloud.QCloudNoiseModel.get_single_params | ( | self | ) |
get_single_params(self: qcloud.QCloudNoiseModel) -> list[float]
Returns the single qubit noise parameters.
bool pyqpanda3.qcloud.QCloudNoiseModel.is_enabled | ( | self | ) |
is_enabled(self: qcloud.QCloudNoiseModel) -> bool
Checks if the noise model is enabled.
None pyqpanda3.qcloud.QCloudNoiseModel.print | ( | self | ) |
print(self: qcloud.QCloudNoiseModel) -> None
Prints the noise model and its parameters to the standard output.
None pyqpanda3.qcloud.QCloudNoiseModel.set_double_params | ( | self, | |
list[float] | arg0 ) |
set_double_params(self: qcloud.QCloudNoiseModel, arg0: list[float]) -> None
Sets the double qubit noise parameters.
[in] | double_p | The double qubit noise parameters. |
None pyqpanda3.qcloud.QCloudNoiseModel.set_single_params | ( | self, | |
list[float] | arg0 ) |
set_single_params(self: qcloud.QCloudNoiseModel, arg0: list[float]) -> None
Sets the single qubit noise parameters.
[in] | single | The single qubit noise parameters. |