![]() |
Q2NSViz 0.1.0
Q2NS trace visualizer
|
Immutable view of the reconstructed network state at one instant. More...
Static Public Attributes | |
| int | t_ns |
| dict | nodes [str, Node] |
| list | channels [Channel] |
| dict | qubits [str, Qubit] |
| dict | cbits [str, ClassicalBit] |
| dict | ent_graph [str, frozenset[str]] |
| dict | entangled_states [str, tuple[str, ...]] |
| frozenset | measured_qubits [str] |
| frozenset | removed_qubits [str] |
| frozenset | discarded_qubits [str] |
| frozenset | lost_qubits [str] |
| frozenset | live_qubit_labels [str] |
| frozenset | inflight_qubits [str] |
| frozenset | inflight_cbits [str] |
| frozenset | gate_qubits [str] |
| frozenset | measuring_qubits [str] |
| frozenset | graph_measuring_qubits [str] |
| frozenset | removed_cbits [str] |
Immutable view of the reconstructed network state at one instant.
Returned by SimulationStateManager.snapshot_at(). This is the unit of state that the QuantumVisualizerWindow controller dispatches to the views, and the object a script inspects after reconstructing a chosen simulation time. Dynamic containers are copies or immutable views; advancing the manager afterwards never mutates an already-returned Snapshot.
| t_ns | Simulation timestamp this snapshot reflects. |
| nodes | Node topology (label -> Node), built once at load time. |
| channels | Channel list, built once at load time. |
| qubits | Every qubit created up to t_ns (label -> Qubit, with its current host node). |
| cbits | Every classical bit created up to t_ns (label -> ClassicalBit). |
| ent_graph | Entanglement-graph adjacency (label -> neighbor labels); vertices with no edges are omitted. |
| entangled_states | Entangled components of two or more qubits, keyed by the lexicographically smallest member (root -> sorted member tuple). |
| measured_qubits | Qubits measured at or before t_ns. |
| removed_qubits | Qubits explicitly removed from the simulation. |
| discarded_qubits | Qubits removed with reason == "discarded". |
| lost_qubits | removed_qubits - measured_qubits - discarded_qubits. |
| live_qubit_labels | Qubits neither measured nor removed. |
| inflight_qubits | Qubits in transit inside a sendQubit window. |
| inflight_cbits | Classical bits in transit inside a sendCbit window. |
| gate_qubits | Qubits inside an entangle processing window ([t_ns - duration_ns, t_ns); the edges commit at t_ns). |
| measuring_qubits | Qubits inside a measure duration_ns window. |
| graph_measuring_qubits | Qubits inside a graphMeasure duration_ns window. |
| removed_cbits | Classical bits removed by removeCbit. |
|
static |
Definition at line 234 of file logic.py.
Referenced by q2nsviz.logic.SimulationStateManager.snapshot_at().
|
static |
Definition at line 232 of file logic.py.
Referenced by q2nsviz.logic.SimulationStateManager.reset().
|
static |
Definition at line 239 of file logic.py.
Referenced by q2nsviz.logic.SimulationStateManager.snapshot_at().
|
static |
Definition at line 235 of file logic.py.
Referenced by q2nsviz.logic.SimulationStateManager.get_entangled_states(), q2nsviz.logic.SimulationStateManager.get_entanglement_groups(), and q2nsviz.logic.SimulationStateManager.snapshot_at().
|
static |
|
static |
Definition at line 244 of file logic.py.
Referenced by q2nsviz.ui.canvas.NetworkCanvas.reset().
|
static |
Definition at line 246 of file logic.py.
Referenced by q2nsviz.ui.canvas.NetworkCanvas.reset().
|
static |
Definition at line 243 of file logic.py.
Referenced by q2nsviz.ui.canvas.NetworkCanvas.reset().
|
static |
Definition at line 242 of file logic.py.
Referenced by q2nsviz.ui.canvas.NetworkCanvas.reset().
|
static |
|
static |
Definition at line 240 of file logic.py.
Referenced by q2nsviz.ui.canvas.NetworkCanvas.paintEvent(), and q2nsviz.ui.canvas.NetworkCanvas.reset().
|
static |
Definition at line 237 of file logic.py.
Referenced by q2nsviz.logic.SimulationStateManager.get_entangled_states(), q2nsviz.logic.SimulationStateManager.get_entanglement_groups(), and q2nsviz.logic.SimulationStateManager.snapshot_at().
|
static |
Definition at line 245 of file logic.py.
Referenced by q2nsviz.ui.canvas.NetworkCanvas.reset().
|
static |
Definition at line 231 of file logic.py.
Referenced by q2nsviz.logic.SimulationStateManager.reset().
|
static |
Definition at line 233 of file logic.py.
Referenced by q2nsviz.logic.SimulationStateManager.get_entanglement_groups(), and q2nsviz.logic.SimulationStateManager.snapshot_at().
|
static |
Definition at line 247 of file logic.py.
Referenced by q2nsviz.ui.canvas.NetworkCanvas.mouseMoveEvent(), q2nsviz.ui.canvas.NetworkCanvas.reset(), and q2nsviz.logic.SimulationStateManager.snapshot_at().
|
static |
Definition at line 238 of file logic.py.
Referenced by q2nsviz.logic.SimulationStateManager.get_entangled_states(), q2nsviz.logic.SimulationStateManager.get_entanglement_groups(), q2nsviz.ui.canvas.NetworkCanvas.mouseMoveEvent(), q2nsviz.ui.canvas.NetworkCanvas.paintEvent(), q2nsviz.ui.canvas.NetworkCanvas.reset(), and q2nsviz.logic.SimulationStateManager.snapshot_at().