kosmos.dqc_scheduling.remote_operation_detector¶
Classes¶
- class RemoteOperationInfo[source]¶
Information about a remote two-qubit gate.
- source_node¶
Node that initiates the remote operation.
- Type:
- target_node¶
Node that receives the remote operation.
- Type:
- class RemoteOperationDetector(matrix: kosmos.dqc_scheduling.space_time_matrix.SpaceTimeMatrix)[source]¶
Detects remote gates and required teleportations from space-time matrix.
Teleportations occur when the qubit assignment changes during execution. Remote operations occur when a gate is applied to qubits assigned to a different node.
Initialize remote operation detector.
- Parameters:
matrix (SpaceTimeMatrix) – Matrix containing qubit assignments over time.
Methods
- detect_teleportations() list[RemoteOperationInfo][source]¶
Detect teleportations by scanning the matrix for qubit transitions.
- A teleportation is needed when the same qubit is allocated on different QPUs in consecutive
timesteps.
- Returns:
All required teleportations with timing.
- Return type:
- detect_remote_gates() list[RemoteOperationInfo][source]¶
Detect remote gates by analyzing partition circuits.
- A remote gate is needed when a multi-qubit gate operates on qubits allocated to different
QPUs at gate’s execution time.
- Returns:
All remote gates with timing and node info.
- Return type: