QPanda3
0.1.0
Supported by OriginQ
|
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 | |
None pyqpanda3.core.NoiseModel.__init__ | ( | self | ) |
init(self: core.NoiseModel) -> None
None pyqpanda3.core.NoiseModel.add_all_qubit_quantum_error | ( | self, | |
error, | |||
GateType | gate_type ) |
add_all_qubit_quantum_error(*args, **kwargs) Overloaded function.
Add a quantum error for all qubits for a specific gate type.
error | The quantum error to add. |
gate_type | The gate type where the error will apply. |
Add a quantum error for all qubits for multiple gate types.
error | The quantum error to add. |
gate_types | A list of gate types where the error will apply. |
None pyqpanda3.core.NoiseModel.add_all_qubit_quantum_error | ( | self, | |
error, | |||
list[GateType] | gate_types ) |
add_all_qubit_quantum_error(*args, **kwargs) Overloaded function.
Add a quantum error for all qubits for a specific gate type.
error | The quantum error to add. |
gate_type | The gate type where the error will apply. |
Add a quantum error for all qubits for multiple gate types.
error | The quantum error to add. |
gate_types | A list of gate types where the error will apply. |
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.
probs | The probabilities of error outcomes. |
None pyqpanda3.core.NoiseModel.add_quantum_error | ( | self, | |
error, | |||
GateType | gate_type, | ||
list[int] | qubits ) |
add_quantum_error(*args, **kwargs) Overloaded function.
Add a quantum error for a specific gate and qubits.
error | The quantum error to add. |
gate_type | The type of the gate where the error will apply. |
qubits | A list of qubit indices where the error will apply. |
Add a quantum error for specific gates and qubits.
error | The quantum error to add. |
gate_types | A list of gate types where the error will apply. |
qubits | A list of qubit indices where the error will apply. |
None pyqpanda3.core.NoiseModel.add_quantum_error | ( | self, | |
error, | |||
list[GateType] | gate_types, | ||
list[int] | qubits ) |
add_quantum_error(*args, **kwargs) Overloaded function.
Add a quantum error for a specific gate and qubits.
error | The quantum error to add. |
gate_type | The type of the gate where the error will apply. |
qubits | A list of qubit indices where the error will apply. |
Add a quantum error for specific gates and qubits.
error | The quantum error to add. |
gate_types | A list of gate types where the error will apply. |
qubits | A list of qubit indices where the error will apply. |
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.
probs | The probabilities of error outcomes. |
qubit | The index of the qubit. |
bool pyqpanda3.core.NoiseModel.is_enabled | ( | self | ) |
is_enabled(self: core.NoiseModel) -> bool
Check if the noise model is enabled.