Skip to content

About

A web-accessible Ising machine application

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ising-machine-app

An 8-spin oscillator Ising machine that solves max-cut problems in hardware. Results are published to isingmachine.app.

Mac (hardware/io) ──serial──▶ ESP32 ──SPI──▶ couplers + comparators
        └──POST /api/result──▶ isingmachine.app

Solving max-cut

hardware/io/device.py is the Python interface to the device. A problem is a weight per edge between spins A–H; solve programs it on the couplers, samples the oscillator phases, and scores the read-out against the brute-force max cut.

from device import IsingMachine

machine = IsingMachine()                        # open device serial port
problem = {"AB": 1, "BC": 1, "CD": 1, "DA": 1}  # define problem
r = machine.solve(problem)
machine.publish("ring4b", problem, r)           # POST result to isingmachine.app
machine.close()

run_maxcut.py runs preset problems (ring4b, ring8b/ring8w, cal_ring8b/cal_ring8w, cube8b/cube8w, cal_cube8b/cal_cube8w, k44b/k44w, cal_k44b/cal_k44w, cubic8b/cubic8w, er8b/er8w (random, --seed), dense8b/dense8w, empty):

python3 hardware/io/run_maxcut.py cal_ring8b k44w --publish

Layout

hardware/    schematics and bench scripts (hardware/io: device.py, run_maxcut.py)
firmware/    ESP32 sketch exposing the serial CLI that device.py drives (firmware/README.md)
web/         isingmachine.app on Cloudflare (web/README.md)

About

A web-accessible Ising machine application

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages