| Crates.io | qvcm |
| lib.rs | qvcm |
| version | 1.0.1 |
| created_at | 2025-11-17 17:14:34.412131+00 |
| updated_at | 2025-11-17 17:26:52.277911+00 |
| description | Register-based bytecode VM with quantum computing functionality |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1937241 |
| size | 34,885 |
A Rust-based Quantum Virtual Machine capable of executing a custom bytecode language with both classical and quantum instructions.
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.
Rust 1.70+ (or latest stable)
Cargo
Just run:
cargo install qvcm
Oh, and you'll probably need an assembler. Grab the official one at the GitHub repository for QCVA.
Run:
qcva input.qcva \[-o output.qcvm] \[-e label].
Then run:
qcvm input.qcvm
## License
Apache-2.0.