QPanda3
Supported by OriginQ
载入中...
搜索中...
未找到
pyqpanda3.core.core.NoiseModel类 参考

Public 成员函数

None __init__ (self)
 init(self: core.NoiseModel) -> None
 
None add_all_qubit_quantum_error (self, error, GateType gate_type)
 add_all_qubit_quantum_error(*args, **kwargs) Overloaded function.
 
None add_all_qubit_quantum_error (self, error, list[GateType] gate_types)
 add_all_qubit_quantum_error(*args, **kwargs) Overloaded function.
 
None add_all_qubit_read_out_error (self, list[list[float]] probs)
 add_all_qubit_read_out_error(self: core.NoiseModel, probs: list[list[float]]) -> None
 
None add_quantum_error (self, error, GateType gate_type, list[int] qubits)
 add_quantum_error(*args, **kwargs) Overloaded function.
 
None add_quantum_error (self, error, list[GateType] gate_types, list[int] qubits)
 add_quantum_error(*args, **kwargs) Overloaded function.
 
None add_read_out_error (self, list[list[float]] probs, int qubit)
 add_read_out_error(self: core.NoiseModel, probs: list[list[float]], qubit: int) -> None
 
bool is_enabled (self)
 is_enabled(self: core.NoiseModel) -> bool
 

构造及析构函数说明

◆ __init__()

None pyqpanda3.core.core.NoiseModel.__init__ ( self)

init(self: core.NoiseModel) -> None

成员函数说明

◆ add_all_qubit_quantum_error() [1/2]

None pyqpanda3.core.core.NoiseModel.add_all_qubit_quantum_error ( self,
error,
GateType gate_type )

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

  1. add_all_qubit_quantum_error(self: core.NoiseModel, error: QPanda3::QuantumError, gate_type: core.GateType) -> None

Add a quantum error for all qubits for a specific gate type.

参数
errorThe quantum error to add.
gate_typeThe gate type where the error will apply.
返回
None
  1. add_all_qubit_quantum_error(self: core.NoiseModel, error: QPanda3::QuantumError, gate_types: list[core.GateType]) -> None

Add a quantum error for all qubits for multiple gate types.

参数
errorThe quantum error to add.
gate_typesA list of gate types where the error will apply.
返回
None

◆ add_all_qubit_quantum_error() [2/2]

None pyqpanda3.core.core.NoiseModel.add_all_qubit_quantum_error ( self,
error,
list[GateType] gate_types )

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

  1. add_all_qubit_quantum_error(self: core.NoiseModel, error: QPanda3::QuantumError, gate_type: core.GateType) -> None

Add a quantum error for all qubits for a specific gate type.

参数
errorThe quantum error to add.
gate_typeThe gate type where the error will apply.
返回
None
  1. add_all_qubit_quantum_error(self: core.NoiseModel, error: QPanda3::QuantumError, gate_types: list[core.GateType]) -> None

Add a quantum error for all qubits for multiple gate types.

参数
errorThe quantum error to add.
gate_typesA list of gate types where the error will apply.
返回
None

◆ add_all_qubit_read_out_error()

None pyqpanda3.core.core.NoiseModel.add_all_qubit_read_out_error ( self,
list[list[float]] probs )

add_all_qubit_read_out_error(self: core.NoiseModel, probs: list[list[float]]) -> None

Add read-out error for all qubits.

参数
probsThe probabilities of error outcomes.
返回
None

◆ add_quantum_error() [1/2]

None pyqpanda3.core.core.NoiseModel.add_quantum_error ( self,
error,
GateType gate_type,
list[int] qubits )

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

  1. add_quantum_error(self: core.NoiseModel, error: QPanda3::QuantumError, gate_type: core.GateType, qubits: list[int]) -> None

Add a quantum error for a specific gate and qubits.

参数
errorThe quantum error to add.
gate_typeThe type of the gate where the error will apply.
qubitsA list of qubit indices where the error will apply.
返回
None
  1. add_quantum_error(self: core.NoiseModel, error: QPanda3::QuantumError, gate_types: list[core.GateType], qubits: list[int]) -> None

Add a quantum error for specific gates and qubits.

参数
errorThe quantum error to add.
gate_typesA list of gate types where the error will apply.
qubitsA list of qubit indices where the error will apply.
返回
None

◆ add_quantum_error() [2/2]

None pyqpanda3.core.core.NoiseModel.add_quantum_error ( self,
error,
list[GateType] gate_types,
list[int] qubits )

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

  1. add_quantum_error(self: core.NoiseModel, error: QPanda3::QuantumError, gate_type: core.GateType, qubits: list[int]) -> None

Add a quantum error for a specific gate and qubits.

参数
errorThe quantum error to add.
gate_typeThe type of the gate where the error will apply.
qubitsA list of qubit indices where the error will apply.
返回
None
  1. add_quantum_error(self: core.NoiseModel, error: QPanda3::QuantumError, gate_types: list[core.GateType], qubits: list[int]) -> None

Add a quantum error for specific gates and qubits.

参数
errorThe quantum error to add.
gate_typesA list of gate types where the error will apply.
qubitsA list of qubit indices where the error will apply.
返回
None

◆ add_read_out_error()

None pyqpanda3.core.core.NoiseModel.add_read_out_error ( self,
list[list[float]] probs,
int qubit )

add_read_out_error(self: core.NoiseModel, probs: list[list[float]], qubit: int) -> None

Add read-out error for a specific qubit.

参数
probsThe probabilities of error outcomes.
qubitThe index of the qubit.
返回
None

◆ is_enabled()

bool pyqpanda3.core.core.NoiseModel.is_enabled ( self)

is_enabled(self: core.NoiseModel) -> bool

Check if the noise model is enabled.

返回
True if the noise model is enabled, false otherwise.

该类的文档由以下文件生成: