GiggleLiu / ProblemReductions.jl

Reduction between computational hard problems.
https://giggleliu.github.io/ProblemReductions.jl/dev/
MIT License
7 stars 3 forks source link

Reduce 3-SAT to CircuitSAT #10

Open GiggleLiu opened 2 months ago

GiggleLiu commented 2 months ago

Ref:

SciCodePhy commented 1 month ago

Reduce 3-SAT to QUBO (Under Development)

I. Quadratic Unconstrained Binary Optimizati (QUBO)

The QUBO problem is to minimize or maximize a quadratic form $y=x^T Q x$, where $x$ is a Boolean vector and $Q$ is a real square matrix.

II. Transformation

Ref. 1 gives a new transformation from 3-SAT to QUBO:

  1. Energy of an assignment $\vec{x}$ of a 3-SAT CNF in $Q$: We can introduce some dummy variables $\vec{a}$ and define a new Boolean vector $\tilde{x}=\vec{x} \otimes \vec{a}$. The energy of an assignment $\vec{x}$ is defined as: $\min_{\vec{a}} \tilde{x}^T Q \tilde{x}$.
  2. Clause QUBO: Given a clause $C$ of a 3-SAT instance. A QUBO is a clause QUBO (in terms of $C$) if: 1) The assignments satisfying $C$ has the minimal degenerate energy; 2) Assignments not satisfying $C$ have higher energy.
  3. The remaing proof is lengthy. One may check Ref. 1 for more details.

III. References

  1. https://arxiv.org/pdf/2305.02659
  2. https://arxiv.org/pdf/1811.11538

Reduce QUBO to Spin Glass

For a given graph $G=(V,E)$, we can define a classical spin model:

$$ H=\sum{(i, j) \in E} J{i j} \sigma_i \sigmaj+\sum{i \in V} h_i \sigma_i $$

I didn't find good references for this reduction, but it seems that this reduction is trivial:

GiggleLiu commented 1 month ago

https://support.dwavesys.com/hc/en-us/community/posts/1500000470701-What-are-the-cost-function-for-NAND-and-NOR-gates