QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.core.NoiseModel Class Reference

Public Member Functions

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
 

Constructor & Destructor Documentation

◆ __init__()

None pyqpanda3.core.NoiseModel.__init__ ( self)

init(self: core.NoiseModel) -> None

Member Function Documentation

◆ add_all_qubit_quantum_error() [1/2]

None pyqpanda3.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: QPanda::QuantumError, gate_type: core.GateType) -> None

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

Parameters
errorThe quantum error to add.
gate_typeThe gate type where the error will apply.
Returns
None
  1. add_all_qubit_quantum_error(self: core.NoiseModel, error: QPanda::QuantumError, gate_types: list[core.GateType]) -> None

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

Parameters
errorThe quantum error to add.
gate_typesA list of gate types where the error will apply.
Returns
None

◆ add_all_qubit_quantum_error() [2/2]

None pyqpanda3.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: QPanda::QuantumError, gate_type: core.GateType) -> None

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

Parameters
errorThe quantum error to add.
gate_typeThe gate type where the error will apply.
Returns
None
  1. add_all_qubit_quantum_error(self: core.NoiseModel, error: QPanda::QuantumError, gate_types: list[core.GateType]) -> None

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

Parameters
errorThe quantum error to add.
gate_typesA list of gate types where the error will apply.
Returns
None

◆ add_all_qubit_read_out_error()

None pyqpanda3.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.

Parameters
probsThe probabilities of error outcomes.
Returns
None

◆ add_quantum_error() [1/2]

None pyqpanda3.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: QPanda::QuantumError, gate_type: core.GateType, qubits: list[int]) -> None

Add a quantum error for a specific gate and qubits.

Parameters
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.
Returns
None
  1. add_quantum_error(self: core.NoiseModel, error: QPanda::QuantumError, gate_types: list[core.GateType], qubits: list[int]) -> None

Add a quantum error for specific gates and qubits.

Parameters
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.
Returns
None

◆ add_quantum_error() [2/2]

None pyqpanda3.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: QPanda::QuantumError, gate_type: core.GateType, qubits: list[int]) -> None

Add a quantum error for a specific gate and qubits.

Parameters
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.
Returns
None
  1. add_quantum_error(self: core.NoiseModel, error: QPanda::QuantumError, gate_types: list[core.GateType], qubits: list[int]) -> None

Add a quantum error for specific gates and qubits.

Parameters
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.
Returns
None

◆ add_read_out_error()

None pyqpanda3.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.

Parameters
probsThe probabilities of error outcomes.
qubitThe index of the qubit.
Returns
None

◆ is_enabled()

bool pyqpanda3.core.NoiseModel.is_enabled ( self)

is_enabled(self: core.NoiseModel) -> bool

Check if the noise model is enabled.

Returns
True if the noise model is enabled, false otherwise.

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