QPanda3
0.1.0
Supported by OriginQ
|
Public Member Functions | |
None | __init__ (self) |
init(self: core.QResult) -> None | |
None | add_result (self, int cbit_addr, bool result) |
add_result(self: core.QResult, cbit_addr: int, result: bool) -> None | |
dict[str, int] | get_counts (self) |
get_counts(self: core.QResult) -> dict[str, int] | |
dict[str, float] | get_measure_probs (self) |
get_measure_probs(self: core.QResult) -> dict[str, float] | |
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 | |
None | reset (self) |
reset(self: core.QResult) -> None | |
int | shots (self) |
shots(self: core.QResult) -> int | |
None | store_measure_result (self) |
store_measure_result(self: core.QResult) -> None | |
None | store_state_vector (self, list[complex] arg0) |
store_state_vector(self: core.QResult, arg0: list[complex]) -> None | |
None pyqpanda3.core.QResult.__init__ | ( | self | ) |
init(self: core.QResult) -> None
Reimplemented in pyqpanda3.core.StabilizerResult.
None pyqpanda3.core.QResult.add_result | ( | self, | |
int | cbit_addr, | ||
bool | result ) |
add_result(self: core.QResult, cbit_addr: int, result: bool) -> None
Add a result to the QResult object.
cbit_addr | The address of the classical bit. |
result | The measurement result corresponding to the classical bit. |
dict[str, int] pyqpanda3.core.QResult.get_counts | ( | self | ) |
get_counts(self: core.QResult) -> dict[str, int]
Get the counts of measurement results.
dict[str, float] pyqpanda3.core.QResult.get_measure_probs | ( | self | ) |
get_measure_probs(self: core.QResult) -> dict[str, float]
Get the measurement probabilities.
dict[str, float] pyqpanda3.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.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.QResult.get_state_vector | ( | self | ) |
get_state_vector(self: core.QResult) -> list[complex]
Get the state vector of the quantum system.
Reimplemented in pyqpanda3.core.StabilizerResult.
None pyqpanda3.core.QResult.print_results | ( | self | ) |
print_results(self: core.QResult) -> None
Print the results of the quantum measurements.
None pyqpanda3.core.QResult.reset | ( | self | ) |
int pyqpanda3.core.QResult.shots | ( | self | ) |
shots(self: core.QResult) -> int
Get the number of shots for the measurement.
None pyqpanda3.core.QResult.store_measure_result | ( | self | ) |
None pyqpanda3.core.QResult.store_state_vector | ( | self, | |
list[complex] | arg0 ) |
store_state_vector(self: core.QResult, arg0: list[complex]) -> None
Store the state vector.