Matrix formulas compile straight into quantum block encodings: MARBLE matches or beats 37 of 39 published baselines
Quantum algorithms need exponentially large matrices encoded efficiently into circuits, yet such circuits have mostly been built by hand or assumed sparse. MARBLE takes a formula for each matrix entry, uses static multiplicity to guarantee a fixed number of distinct entry expressions, and applies algebraic rewriting plus cost analysis to emit OpenQASM. Across 74 matrices from fluid dynamics, PDEs and physics Hamiltonians, it matches or surpasses 37 of 39 published baselines in subnormalization and compiles very large dimensions in under five seconds on a laptop.