:py:mod:`kosmos.dqc_scheduling.assignment_strategies.assignment_strategy` ========================================================================= .. py:module:: kosmos.dqc_scheduling.assignment_strategies.assignment_strategy Classes ------- .. py:class:: AssignmentStrategy(network: kosmos.topology.net.Network) Bases: :py:class:`abc.ABC` Base class for partition assignment strategies. .. attribute:: network The network topology. :type: Network Initialize with network topology. :param network: Network containing QPU nodes with capacity info. :type network: Network | .. rubric:: Methods .. py:method:: allocate(partition: kosmos.partitioning.partition.Partition) -> kosmos.dqc_scheduling.space_time_matrix.SpaceTimeMatrix Allocate partition into a space-time matrix. :param partition: Partition to allocate. :type partition: Partition :returns: Matrix with allocated partition. :rtype: SpaceTimeMatrix