Skip to content

Asmodeus14/Nyx

Nyx OS ⚛️

Schrödinger’s Companion for the Operating System of the Future

Rust License: Apache 2.0 Build Status Dev Containers Codespaces Ready Repo Size Lines of Code Last Commit Contributors Open Issues Pull Requests GitHub stars GitHub forks Pre-Alpha

Overview

Nyx is an experimental open-source operating system built from the ground up for the intersection of:

  • Classical computing
  • Quantum computing
  • AI-driven system intelligence

It is designed as a next-generation OS platform where classical programs, quantum circuits, and machine intelligence coexist natively.

Core design principles:

  • Memory safety
  • Security-first architecture
  • High performance
  • Low energy footprint
  • Future-ready computing

⚠️ Nyx is currently Pre-Alpha and under active development.


Vision

Nyx aims to become a unified computing platform where:

  • Classical programs
  • Quantum circuits
  • AI-driven system intelligence

run together as first-class citizens.

Instead of relying on external simulators or toolchains, Nyx integrates quantum execution directly into the operating system architecture.


Key Features

Hybrid Classical–Quantum Execution

QCLang programs compile into kernel-integrated quantum operations.

  • Quantum simulation backend (current)
  • Native hardware support (future)

AI-Optimized Kernel

Adaptive kernel behavior driven by machine learning:

  • Predictive scheduling
  • Dynamic resource allocation
  • Entropy-aware system tuning

Next-Generation File System

Experimental filesystem designed for hybrid workloads:

  • Quantum metadata support
  • Fractal-inspired storage layout
  • Built-in lossless compression primitives

Rust-First Architecture

Entire stack built with Rust:

  • Kernel
  • Userspace
  • Compiler toolchain

Benefits:

  • Memory safety
  • High performance
  • Reduced system vulnerabilities

Security Model

Security features include:

  • Capability-based permissions
  • Post-quantum cryptography
  • Memory safety guarantees

Simulation-First Development

Development workflow built around QEMU simulation for rapid iteration and testing.


Current Status

Pre-Alpha (March 2026)

Progress:

Component Status
QCLang Compiler Most mature
Kernel (nyx-kernel) Active development
Userspace Early stage
Runtime Libraries Early stage
Quantum Simulation Backend Prototype

Capabilities:

  • Boots in QEMU
  • Partial real hardware boot
  • Early DRM/Nouveau handshake work

Project Structure

nyx/
├── .devcontainer/        # Dev Containers config
├── .github/workflows/    # CI pipelines
├── compiler/             # QCLang compiler
├── nyx-kernel/           # Rust monolithic kernel
├── nyx-user/             # Userspace binaries
├── runtime/              # Runtime libraries & syscalls
├── runner/               # QEMU runner and disk images
├── script/               # Build scripts and helpers
├── Build.sh              # One-command build script
├── Cargo.toml            # Rust workspace
├── SYNTAX.md             # QCLang language spec
├── CLI.md                # CLI reference
├── CONTRIBUTING.md       # Contribution guide

Quick Start (Simulation Mode)

Requirements

  • Rust (nightly toolchain)
  • QEMU

Clone the repository

git clone https://github.com/Asmodeus14/Nyx.git
cd Nyx

Build the project

./Build.sh

This builds the entire Rust workspace and prepares QEMU disk images.


Run Nyx in QEMU

./runner/run-qemu.sh

See CLI.md for advanced options and debugging flags.


QCLang Example

Hello Quantum World (Bell State)

fn main() -> int {

    // Affine quantum register
    qreg q[2] = |00>;

    // Create superposition
    H(q[0]);

    // Entangle qubits
    CNOT(q[0], q[1]);

    let r1: cbit = measure(q[0]);
    let r2: cbit = measure(q[1]);

    // r1 == r2 due to entanglement
    return 0;
}

Full language specification available in:

SYNTAX.md


Contributing

Nyx welcomes contributions from developers interested in:

  • Operating systems
  • Rust kernel development
  • Quantum programming languages
  • Quantum simulation
  • AI-driven systems
  • Security engineering

Ways to contribute:

  • Bug reports
  • Documentation improvements
  • QCLang language features
  • Kernel enhancements
  • QEMU testing infrastructure

Please read:

  • CONTRIBUTING.md
  • CODE_OF_CONDUCT.md

before submitting pull requests.


License

Licensed under Apache License 2.0.

See:

  • LICENSE
  • NOTICE.md

for full details.


Closing

Nyx — because every great OS needs a bit of mystery and entanglement.

Let's build the future, one qubit at a time. 🖤


About

Nyx OS — Experimental open-source operating system with native quantum support via QCLang, custom Rust kernel, AI-driven features, and next-gen file system.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors