Shravar G Tanawde

Y basis · tools

QUBO / QAOA Workbench

Pick a combinatorial problem, fill in an instance, and watch it turn into a QUBO you can check — then into an Ising Hamiltonian, a QAOA landscape, and finally a block of PennyLane you can paste into a fresh notebook and run.

Everything happens in this tab. Nothing is uploaded, nothing is fetched, and there is no account — the only thing that leaves the page is code you copy.

Where the limits are

A statevector doubles with every qubit, so simulation, brute-force checking and the landscape view stop at 20 qubits. Code generation never stops — above the line you still get the full formulation and a program to run elsewhere. Penalty weights come from published closed-form bounds, so a formulation the tool cannot brute-force is still correct by construction.

Save this instance, or resume one

A save code carries the whole formulation, so pasting one back reopens every step it is big enough for — you can come back to the middle of the pipeline, not just the start. It is a string of text and nothing else: no account, no upload, nothing stored anywhere but wherever you paste it.

Step 1 · Formulate

problem instance → Q, offset, λ

Every problem here ends up as the same object: a square matrix Q over binary variables, plus a constant offset. Minimising

E(y) = Σ_k Q[k][k]·y_k + Σ_{k<l} Q[k][l]·y_k·y_l + offset y_k ∈ {0,1}

over all assignments of the bits is the problem. Constraints do not appear separately — they are folded in as penalty terms weighted by λ, chosen large enough that breaking a constraint can never pay for itself. Every λ below is the published closed-form bound for that problem, so the formulation is sound even at sizes nothing here can check.