doc: improve docstrings related to TensorNetworkResult

This commit is contained in:
MatteoRobbiati
2025-02-10 12:17:37 +01:00
parent 30c3bba23a
commit 97d2c79300
2 changed files with 17 additions and 4 deletions

View File

@@ -10,6 +10,20 @@ from qibotn.backends.abstract import QibotnBackend
@dataclass
class TensorNetworkResult:
"""
Object to store and process the output of a Tensor Network simulation of a quantum circuit.
Args:
nqubits (int): number of qubits involved in the simulation;
backend (QibotnBackend): specific backend on which the simulation has been performed;
measures (dict): measures (if performed) during the tensor network simulation;
measured_probabilities (Union[dict, ndarray]): probabilities of the final state
according to the simulation;
prob_type (str): string identifying the method used to compute the probabilities.
Especially useful in case the `QmatchateaBackend` is selected.
statevector (ndarray): if computed, the reconstructed statevector.
"""
nqubits: int
backend: QibotnBackend
measures: dict