-
Quantum computing researchers exploring practical QPL applications beyond algorithms
-
Functional programmers curious about quantum data semantics
-
Language enthusiasts who appreciate Selinger’s elegant type system
-
Adventurous developers seeking to build sites with measurement-based control flow
Hand-written QPL code—not compiled from classical languages. Your site generation logic exists as quantum procedures with classical control.
proc build_page(content : qbit[]) : bit[] =
let parsed = measure(parse_markdown(content)) in
let templated = apply_template(parsed) in
measure(emit_html(templated))The hallmark of QPL: classical control flow orchestrating quantum data transformations. Conditionals, loops, and recursion remain classical while operating on quantum state.
QPL’s linear type system ensures no-cloning compliance. Quantum data cannot be duplicated—only measured or transformed. This constraint, far from limiting, provides correctness guarantees classical SSGs cannot offer.
# Ensure QRAM simulator is available
guix shell qpl-toolchain
# Compile QPL to executable
qplc cpt-ssg.qpl -o ssg.qram
# Generate site
./ssg.qram --input content/ --output _site/┌─────────────────────────────────────────┐
│ cpt-ssg.qpl │
│ ┌─────────────────────────────────┐ │
│ │ Classical Control Layer │ │
│ │ - File iteration │ │
│ │ - Directory traversal │ │
│ │ - Output coordination │ │
│ └──────────────┬──────────────────┘ │
│ │ │
│ ┌──────────────▼──────────────────┐ │
│ │ Quantum Data Pipeline │ │
│ │ - Markdown superposition │ │
│ │ - Template entanglement │ │
│ │ - Measurement → HTML │ │
│ └─────────────────────────────────┘ │
└─────────────────────────────────────────┘
│
▼
┌─────────────────┐
│ host.scm │
│ (File I/O only)│
└─────────────────┘All SSG logic—parsing, templating, routing—lives in QPL. The Scheme host handles only filesystem operations, maintaining the clean separation between quantum computation and classical I/O.
Unlike classical SSGs that transform deterministically, cpt-ssg uses quantum measurement to collapse content superpositions. A page in draft state exists in superposition until measure extracts its final form.
Templates and content share quantum entanglement. Modifying a template’s quantum state instantly reflects across all pages—no rebuild required for correlated updates.
-
qpl-toolchain: QPL compiler and QRAM simulator
-
Guix:
guix shell -D -f guix.scm -
Optional: Hardware QRAM backend for production builds
cpt-ssg is a satellite of the poly-ssg-mcp ecosystem—a unified interface for static site generators across the programming language spectrum.
Integration via MCP enables:
-
Consistent CLI across all poly-ssg generators
-
Unified configuration schema
-
Cross-generator content sharing
-
Orchestrated multi-language builds
-
Selinger, P. (2004). "Towards a Quantum Programming Language." Mathematical Structures in Computer Science, 14(4), 527-586.