QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.qcloud.QCloudNoiseModel Class Reference

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
 

Constructor & Destructor Documentation

◆ __init__() [1/2]

None pyqpanda3.qcloud.QCloudNoiseModel.__init__ ( self)

init(*args, **kwargs) Overloaded function.

  1. init(self: qcloud.QCloudNoiseModel) -> None

Default constructor for QCloudNoiseModel.

  1. init(self: qcloud.QCloudNoiseModel, arg0: qcloud.NOISE_MODEL, arg1: list[float], arg2: list[float]) -> None
@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.

◆ __init__() [2/2]

None pyqpanda3.qcloud.QCloudNoiseModel.__init__ ( self,
NOISE_MODEL arg0,
list[float] arg1,
list[float] arg2 )

init(*args, **kwargs) Overloaded function.

  1. init(self: qcloud.QCloudNoiseModel) -> None

Default constructor for QCloudNoiseModel.

  1. init(self: qcloud.QCloudNoiseModel, arg0: qcloud.NOISE_MODEL, arg1: list[float], arg2: list[float]) -> None
@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.

Member Function Documentation

◆ __eq__()

bool pyqpanda3.qcloud.QCloudNoiseModel.__eq__ ( self,
QCloudNoiseModel arg0 )

eq(self: qcloud.QCloudNoiseModel, arg0: qcloud.QCloudNoiseModel) -> bool

Compares two QCloudNoiseModel objects for equality.

◆ __ne__()

bool pyqpanda3.qcloud.QCloudNoiseModel.__ne__ ( self,
QCloudNoiseModel arg0 )

ne(self: qcloud.QCloudNoiseModel, arg0: qcloud.QCloudNoiseModel) -> bool

Compares two QCloudNoiseModel objects for inequality.

◆ get_double_params()

list[float] pyqpanda3.qcloud.QCloudNoiseModel.get_double_params ( self)

get_double_params(self: qcloud.QCloudNoiseModel) -> list[float]

Returns the double qubit noise parameters.

◆ get_noise_model()

str pyqpanda3.qcloud.QCloudNoiseModel.get_noise_model ( self)

get_noise_model(self: qcloud.QCloudNoiseModel) -> str

Returns the current noise model as a string.

◆ get_single_params()

list[float] pyqpanda3.qcloud.QCloudNoiseModel.get_single_params ( self)

get_single_params(self: qcloud.QCloudNoiseModel) -> list[float]

Returns the single qubit noise parameters.

◆ is_enabled()

bool pyqpanda3.qcloud.QCloudNoiseModel.is_enabled ( self)

is_enabled(self: qcloud.QCloudNoiseModel) -> bool

Checks if the noise model is enabled.

◆ print()

None pyqpanda3.qcloud.QCloudNoiseModel.print ( self)

print(self: qcloud.QCloudNoiseModel) -> None

Prints the noise model and its parameters to the standard output.

◆ set_double_params()

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.

Parameters
[in]double_pThe double qubit noise parameters.

◆ set_single_params()

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.

Parameters
[in]singleThe single qubit noise parameters.

The documentation for this class was generated from the following file: