kosmos.partitioning.algorithms.metis_partitioner¶
Classes¶
- class METISPartitioner(network: kosmos.topology.net.Network | None, num_partitions: int | None)¶
Bases:
kosmos.partitioning.algorithms.partitioning_algorithm.PartitioningAlgorithmGraph-based partitioning using METIS.
Initialize the partitioning algorithm.
- Parameters:
Methods
- partition(circuit: kosmos.partitioning.graph.Graph | qiskit.QuantumCircuit) dict[int, int]¶
Compute a partitioning for the given circuit.