A small Python package for solving:
- MVC: weighted/unweighted Minimum Vertex Cover
- MIS: weighted/unweighted Maximum Independent Set
pip install .Optional extras:
pip install .[quantum]
pip install .[cplex]
pip install .[all]import networkx as nx
from quantum_greedy_mvc import QuantumGreedySolver
G = nx.cycle_graph(6)
solver = QuantumGreedySolver(method="qeg_ldf", qeg_time=0.35, qeg_trotter_layers=1)
mvc = solver.solve_mvc(G)
mis = solver.solve_mis(G)
print(mvc.solution, mvc.objective)
print(mis.solution, mis.objective)examples/basic_usage.ipynb
quantum_greedy(existing heuristic mixer)qeg_ldf(recursive Quantum Energy Greedy with LDF-like reduction)greedy_degreeprimal_dualexactandlp_relaxation
Reference: https://arxiv.org/pdf/2607.27915
- The main interface is Python API (
QuantumGreedySolver). - CLI tools are not required for core usage.