Skip to content

Commit

Permalink
Merge pull request #862 from qiboteam/probnoisy
Browse files Browse the repository at this point in the history
add docs to noisy circuit probabilities
  • Loading branch information
scarrazza authored Apr 25, 2023
2 parents 864f4aa + 58e34c2 commit 4b9e1c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qibo/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,11 @@ def __array__(self):
return self.state(numpy=True)

def probabilities(self, qubits=None):
"""Calculates measurement probabilities by tracing out qubits.
"""Calculates measurement probabilities by tracing out qubits. When
a noise model is applied to the circuit this method will return the
probabilities from the last execution shot, which may or may not
correspond to the noise-free state depending on whether the noise was
applied or not in that specific execution.
Args:
qubits (list, set): Set of qubits that are measured.
Expand Down

0 comments on commit 4b9e1c8

Please sign in to comment.