Tutorials
spheres.utils.
measure
Given a state and a set of projectors, calculates the probability of each outcome, and returns an outcome index with that probability.
state (qt.Qobj) –
projectors (list) –
index
int