Bursts
Burst
ZeroBurst
- class qrobot.bursts.ZeroBurst[source]
Return the fraction of measured bits equal to zero.
\[\begin{split}\\text{Burst} = \\frac{ \\text{Number of 0s for the state in the computational base} }{ \\text{State dimension} }\end{split}\]For example, for
"00100100"we have \(\\frac{6}{8}\):>>> from qrobot.bursts import ZeroBurst >>> state = "00100100" >>> ZeroBurst(state) 0.75
OneBurst
- class qrobot.bursts.OneBurst[source]
Return the fraction of measured bits equal to one.
\[\begin{split}\\text{Burst} = \\frac{ \\text{Number of 1s for the state in the computational base} }{ \\text{State dimension} }\end{split}\]For example, for
"00100100"we have \(\\frac{2}{8}\):>>> from qrobot.bursts import OneBurst >>> state = "00100100" >>> OneBurst(state) 0.25