Skip to main content

Module qubo

Module qubo 

Source
Expand description

Semantic-to-QUBO boil-down compiler for zero-context quantum offloading.

Strips DIDs and URIs into ephemeral local indices, emits linear biases and quadratic coupler weights, then re-hydrates binary solutions back to Quins.

Structs§

QuboMatrix
QuboWeightEmit

Enums§

QuboCompileError

Constants§

MAX_COUPLERS
MAX_QUBO_VARS
OP_EMIT_WEIGHT

Functions§

compile_quins_to_qubo
Walk constraint Quins and compile a blind QUBO matrix.
emit_weight_from_quin
VM opcode handler: push a float weight from the object register.
quantum_prompt_gate
Pre-flight gate: reject prompts that signal classified quantum egress.
rehydrate_solution
Re-hydrate a binary solution using the ephemeral index map.
solve_classical
Classical fallback: greedy energy minimization on small QUBO.