Skip to content
Public template

About

Qlite is a lightweight quantum programming from CLI to Cloud. Simulate algorithms locally or export to IBM Quantum with a full-stack, mobile-friendly pipeline.

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Qlite Language & Compiler

Powered by QLDS

Tests PyPI Version License License GitHub stars Milestone Announcement Contributing


Quantum Computing Made Simple with Qlite

Qlite (`kla•yt) is a lightweight, modular quantum compiler and simulator designed for both beginners and quantum enthusiasts. Build quantum algorithms from the command line, simulate them locally, or seamlessly export to IBM Quantum—all with a streamlined, mobile-friendly interface. It bridges the gap between high-level quantum programming and local simulation, featuring a custom AST-based Qlite interpreter and an integrated circuit visualization tool.


Key Features

  • CLI to Cloud: Program quantum algorithms directly from your terminal
  • Local Simulation: Test and debug circuits without leaving your machine
  • IBM Quantum Integration: Export your work to IBM's quantum processors
  • Mobile-Friendly: Access the full development pipeline from any device. Designed with a clean, modular architecture accessible for any dev environment.
  • Modular Architecture: Build and compose quantum components with ease
  • Custom DSL: A streamlined syntax for defining qubits and gates.
  • Local High-Fidelity Simulation: Full state-vector simulation supporting superposition and entanglement.
  • ASCII Circuit Drawing: Visualize your quantum circuits directly in the terminal.
  • Advanced Gate Library: Support for H, X, Z, RX(θ), CNOT, and CZ.

Installation

Clone the repository and install the dependencies:

git clone [https://github.com/MAX25M/qlite.git](https://github.com/MAX25M/qlite.git)
cd qlite
pip install -r requirements.txt

Usage

  1. The Qlite Language (.ql) Write your quantum algorithms in a simple, declarative style:
// Example: Bell State
qubit q[2];
H q[0];
CNOT(q[0], q[1]);
  1. Running the Simulator You can use the simulator directly in Python to execute gates or process an AST:
from core.simulator import Simulator

# Initialize 2 qubits
sim = Simulator(num_qubits=2)

# Apply gates
sim.apply_gate('H', [0])
sim.apply_gate('CNOT', [0, 1])

# Visualize the circuit
sim.draw()

# Get state results
print(sim.get_probabilities())
  1. Circuit Visualization Q-Lite includes a built-in ASCII drawer to debug your circuit logic visually:
q0: ──[H]────●──
q1: ────────[X]─

Qlite (.ql) Supported Gates

Gate Type Description
H Single Creates superposition ($
X Single Pauli-X (Quantum NOT gate)
Z Single Pauli-Z (Phase flip)
RX(θ) Single Rotation around the X-axis
CNOT Multi Controlled-NOT (Entangles two qubits)
CZ Multi Controlled-Z (Phase entanglement)

Testing

We use unittest to ensure mathematical accuracy of the state-vector transitions.

export PYTHONPATH=$PYTHONPATH:$(pwd)
python -m unittest discover tests

The test suite covers:

  • Initial state |00\rangle verification.
  • Bell State probability distribution (50/50 split).
  • CZ Gate phase-interference logic.

Roadmap

  • Done State-vector Simulation
  • Done ASCII Circuit Drawing
  • Done Multi-qubit Gate Support (CNOT, CZ)
  • Done OpenQASM 3.0 Compatibility
  • PlannedIntegration with IBM Quantum (Qiskit)
  • Planned Qlite Quantum Programming Language Standalone IDE
  • Planned "Hardware Bridge"—a module that converts Qlite AST directly into OpenQASM,

Support the Developer

If you find Qlite useful, please consider supporting its development!

GitHub Sponsors PayPal

Support the Project

If Qlite helped you learn quantum computing or speed up your workflow, consider buying me a coffee! Your support helps keep the project alive and free.

Donate with PayPal

Licenses

This project is licensed under the and distributed under the .

How to Cite

If you use this software in your work, please cite it as follows:

@software{Qlite,
  author = {Mark Joseph N. Octavo},
  title = {Qlite Language and Compiler},
  url = {https://github.com/MAX25M/qlite},
  version = {0.0.6},
  year = {2026}
}

Animate my Snake


©2026 Qlite Language Distribution Systems. All rights reserved

About

Qlite is a lightweight quantum programming from CLI to Cloud. Simulate algorithms locally or export to IBM Quantum with a full-stack, mobile-friendly pipeline.

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages