quantum_launcher.problems.problem_initialization.ec#
This module contains the EC class.
Summary#
Classes:
Class for exact cover problem. |
Reference#
- class quantum_launcher.problems.problem_initialization.ec.EC(instance: List[Set[int]] = None, instance_name: str = 'unnamed')[source]#
Bases:
Problem
Class for exact cover problem.
The exact cover problem is a combinatorial optimization problem that involves finding a subset of a given set of elements such that the subset covers all elements and the number of elements in the subset is minimized. The class contains an instance of the problem, so it can be passed into Quantum Launcher.
- onehot#
The one-hot encoding used for the problem.
- Type:
str
- instance#
The instance of the problem.
- Type:
any
- instance_name#
The name of the instance.
- Type:
str | None
- instance_path#
The path to the instance file.
- Type:
str
- property setup: dict#