Implementation of von Neumann Machine on a Quantum Computer
This work implements the classical von Neumann architecture on a quantum computer using quantum gates only. A single reversible circuit of X, CNOT, Toffoli and Fredkin gates forms a complete stored-program machine: program memory, program counter, fetch and decode, registers, flags, data memory with a stack, and an ALU. The program is loaded as qubit state, not compiled into the circuit. The machine executes unmodified instructions of C functions compiled for AArch64, RISC-V and x86-64, for a supported subset of each instruction set and with 6–16-qubit registers. The interpreter can be used coherently. Programs and inputs in superposition are executed, and compiled C functions run as oracles in Grover search and Shor's algorithm. It provides no efficiency advantage over directly compiled circuits, but it offers a different view of a QPU: a processor that holds and runs its own program. The text is a self-contained tutorial with gate-level descriptions, measured gate counts, and single instructions drawn gate by gate. All results come from exact simulation. The source package includes the scripts that reproduce every table and figure.
Authors
- Sergii Salata (ORCID: https://orcid.org/0000-0002-3106-933X)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-23
- DOI
- https://doi.org/10.5281/zenodo.24461041
- Primary Topic
- Quantum Computing Algorithms and Architecture
- Type
- article
- Field-Weighted Citation Impact
- 0.00