2部グラフのb-マッチング
One-hot encoding
Section titled “One-hot encoding”Domain-wall encoding
Section titled “Domain-wall encoding”python3 -m venv .venv && source .venv/bin/activatepip install -r requirements.txt
# S.npy は N×M(= N×10)の重み行列(高いほど好ましい)# 例1: 列も domain-wall(Sequential)python src/run_matching_compare.py \ --S S.npy \ --columns sequential \ --attempts 64 --time-budget-sec 180 \ --out out/seq_vs_onehot
# 例2: 列は Binary Adder(b 大きめ向け)python src/run_matching_compare.py \ --S S.npy \ --columns adder \ --attempts 64 --time-budget-sec 180 \ --out out/adder_vs_onehot