kosmos.dqc_scheduling.assignment_strategies.assignment_strategy

Classes

class AssignmentStrategy(network: kosmos.topology.net.Network)[source]

Bases: abc.ABC

Base class for partition assignment strategies.

network

The network topology.

Type:

Network

Initialize with network topology.

Parameters:

network (Network) – Network containing QPU nodes with capacity info.


Methods

allocate(partition: kosmos.partitioning.partition.Partition) kosmos.dqc_scheduling.space_time_matrix.SpaceTimeMatrix[source]

Allocate partition into a space-time matrix.

Parameters:

partition (Partition) – Partition to allocate.

Returns:

Matrix with allocated partition.

Return type:

SpaceTimeMatrix