MaxCut問題の古典・量子アルゴリズム比較 / Classical-Quantum Algorithm Comparison for MaxCut Problem
このリポジトリは、MaxCut問題を解くための古典的手法と量子コンピューティング手法の実装と比較を含んでいます。
本プロジェクトは以下のYouTube動画の解説資料として使用されています:
MaxCut問題は、グラフの頂点を2つの集合に分割し、その集合間を結ぶエッジの重みの合計を最大化する組み合わせ最適化問題です。
- SDP(半正定値計画)緩和法:
maxcut3古典手法.ipynb- PICOS/CVXOPTを使用したSDP緩和による近似解法
- Goemans-Williamsonアルゴリズムの実装
- 20ノードおよび100ノードのグラフでの実験
- D-Wave量子アニーリング: 実装・実験中
- D-Wave Systems社の量子アニーラーを使用した実験
- QUBOフォーミュレーションによるMaxCut問題の解法
- 実機での実行結果と古典手法との比較
- QAOA(Quantum Approximate Optimization Algorithm): 実装予定
- VQE(Variational Quantum Eigensolver): 実装予定
# 古典手法用
pip install cvxopt picos networkx numpy matplotlib
# D-Wave用(オプション)
pip install dwave-ocean-sdkJupyter Notebookを起動して、各.ipynbファイルを実行してください:
jupyter notebookmaxcut3古典手法.ipynb- SDP緩和を用いた古典的アプローチ- 他の量子アルゴリズム実装ファイル(追加予定)
- 動画での解説 - 本プロジェクトのアルゴリズムの詳細な比較と解説
This repository contains implementations and comparisons of classical and quantum computing approaches for solving the MaxCut problem.
This project serves as the source material for the following YouTube video:
The MaxCut problem is a combinatorial optimization problem where the goal is to partition the vertices of a graph into two sets such that the sum of weights of edges between the two sets is maximized.
- SDP (Semidefinite Programming) Relaxation:
maxcut3古典手法.ipynb- Approximate solution using SDP relaxation with PICOS/CVXOPT
- Implementation of the Goemans-Williamson algorithm
- Experiments on graphs with 20 and 100 nodes
- D-Wave Quantum Annealing: Under implementation and experimentation
- Experiments using D-Wave Systems' quantum annealer
- MaxCut problem solving through QUBO formulation
- Comparison of real quantum hardware results with classical methods
- QAOA (Quantum Approximate Optimization Algorithm): To be implemented
- VQE (Variational Quantum Eigensolver): To be implemented
# For classical methods
pip install cvxopt picos networkx numpy matplotlib
# For D-Wave (optional)
pip install dwave-ocean-sdkLaunch Jupyter Notebook and run the .ipynb files:
jupyter notebookmaxcut3古典手法.ipynb- Classical approach using SDP relaxation- Other quantum algorithm implementation files (to be added)
- Video Explanation - Detailed comparison and explanation of the algorithms in this project
このプロジェクトはMITライセンスの下で公開されています。 This project is licensed under the MIT License.