![]() |
QPanda3
Supported by OriginQ
|
Public 成员函数 | |
| None | __init__ (self) |
| init(self: core.QResult) -> None | |
| dict[str, int] | get_counts (self) |
| get_counts(self: core.QResult) -> dict[str, int] | |
| dict[str, float] | get_prob_dict (self, list[int] qubits=...) |
| get_prob_dict(self: core.QResult, qubits: list[int] = []) -> dict[str, float] | |
| list[float] | get_prob_list (self, list[int] qubits=...) |
| get_prob_list(self: core.QResult, qubits: list[int] = []) -> list[float] | |
| list[complex] | get_state_vector (self) |
| get_state_vector(self: core.QResult) -> list[complex] | |
| None | print_results (self) |
| print_results(self: core.QResult) -> None | |
| int | shots (self) |
| shots(self: core.QResult) -> int | |
| None pyqpanda3.core.core.QResult.__init__ | ( | self | ) |
init(self: core.QResult) -> None
| dict[str, int] pyqpanda3.core.core.QResult.get_counts | ( | self | ) |
get_counts(self: core.QResult) -> dict[str, int]
Get the counts of measurement results.
| dict[str, float] pyqpanda3.core.core.QResult.get_prob_dict | ( | self, | |
| list[int] | qubits = ... ) |
get_prob_dict(self: core.QResult, qubits: list[int] = []) -> dict[str, float]
Get the dictionary of probabilities for specific qubits.
| qubits | A list of qubit indices to get the probabilities for. |
| list[float] pyqpanda3.core.core.QResult.get_prob_list | ( | self, | |
| list[int] | qubits = ... ) |
get_prob_list(self: core.QResult, qubits: list[int] = []) -> list[float]
Get the list of probabilities for specific qubits.
| qubits | A list of qubit indices to get the probabilities for. |
| list[complex] pyqpanda3.core.core.QResult.get_state_vector | ( | self | ) |
get_state_vector(self: core.QResult) -> list[complex]
Get the state vector of the quantum system.
| None pyqpanda3.core.core.QResult.print_results | ( | self | ) |
| int pyqpanda3.core.core.QResult.shots | ( | self | ) |
shots(self: core.QResult) -> int
Get the number of shots for the measurement.