qvcm

Crates.ioqvcm
lib.rsqvcm
version1.0.1
created_at2025-11-17 17:14:34.412131+00
updated_at2025-11-17 17:26:52.277911+00
descriptionRegister-based bytecode VM with quantum computing functionality
homepage
repository
max_upload_size
id1937241
size34,885
DelordofApels (muhammadmahdi70412-ship-it)

documentation

README

Quantum Virtual Computing Machine (QVCM)

A Rust-based Quantum Virtual Machine capable of executing a custom bytecode language with both classical and quantum instructions.

Features

  • Full support for classical integer and string registers.

  • Memory allocation and read/write operations.

  • Arithmetic (add, sub, inc, dec) and string operations (cat, cmpstr).

  • Input/output instructions for interacting with the user.

  • Conditional and unconditional jumps (jmp, je, jne, jg, jl).

  • Function call and return support with a call stack.

  • Quantum instructions including:

  - Qubit creation

  - Hadamard gate application

  - Qubit measurement (qread)

  • Bytecode validation with magic bytes.

  • Execution timing output.

Prerequisites

  • Rust 1.70+ (or latest stable)

  • Cargo

Installation

Just run:

cargo install qvcm

Oh, and you'll probably need an assembler. Grab the official one at the GitHub repository for QCVA.

Running

Run:

qcva input.qcva \[-o output.qcvm] \[-e label].

Then run:

qcvm input.qcvm

## License

Apache-2.0.

Commit count: 0

cargo fmt