LanQ

1 program Added 2026-03-10T14:25:17Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit f0d6441c41 · authored 2026-03-10T15:25:44+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

LANSA (0.30)Lasp (0.20)Lava (0.20)Lasca (0.18)Lasso (0.18)

LLM-contributed programs

Quantum Coin Flip

Provenance: commit f0d6441c41 · authored 2026-03-10T15:25:44+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.lq · added: 2026-03-10T14:25:17Z
/* Quantum coin flip in LanQ
   Demonstrates quantum superposition via Hadamard gate
   Mlnarik, H. LanQ - a functional quantum programming language (2007) */

int coin_flip() {
    qbit q;
    q = new(0);
    H(q);
    int result = measure(q);
    return result;
}

int main() {
    int i;
    for (i = 0; i < 5; i++) {
        int r = coin_flip();
        print(r);
    }
    return 0;
}

Contribute — propose a file extension

Tell us where to find evidence about LanQ (mapped to pl/lanq). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/LanQ/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Laning and Zierler System LANSA →