cosmiq.results#
Measured shots: what a run in shot mode returns, one Shots per batch row.
Labels are uint8: 0 ground, 1 Rydberg, 2 lost. pre and post are the raw
occupancy images (1 = atom seen) when the backend has them: a lost atom and a Rydberg atom
both read dark in post, which is why the labels carry loss separately.
Classes
- class cosmiq.results.Shots(labels: NDArray[uint8], pre: NDArray[uint8] | None = None, post: NDArray[uint8] | None = None, seed: int | None = None, device: str | None = None, conventions_version: str = '1')#
Bases:
objectShots compare by identity (their fields are arrays); compare the arrays.
- labels: NDArray[uint8]#
- property rydberg_density: NDArray[float64]#
[N]: the fraction of shots with label 1, over shots where the atom wasn’t lost.
Empty sites (pre == 0) count as absent too. An atom that is never present gives NaN.
Values
- cosmiq.results.GROUND = 0#
- cosmiq.results.LOST = 2#
- cosmiq.results.RYDBERG = 1#