kosmos.dqc_scheduling.space_time_matrix¶
Module Attributes¶
- TWO_QUBIT_GATE_SIZE = 2¶
Classes¶
- class SpaceTimeMatrix(num_qubits: int, num_timesteps: int)[source]¶
Matrix tracking QPU assignments for each qubit at each time step.
- matrix¶
Matrix that stores which Qubit is assigned to what node in the simulation.
- Type:
list[list[QuantumNode | None]]
- partition_info¶
Mapping from Partition objects, storing circuit segments and metadata.
Initialize empty matrix.
- Parameters:
Methods
- get_node_at(qubit: int, time: int) kosmos.topology.node.QuantumNode | None[source]¶
Get node owning a qubit at a specific time.
- Parameters:
- Returns:
Node owning the qubit, or None if not allocated.
- Return type:
QuantumNode | None