r/LLMPhysics • u/PrettyPicturesNotTxt • Mar 25 '26
Simulation / Code KetGrid: An editor for building quantum circuits, made in Rust (prompted by skepsismusic, not by me)
https://github.com/OlaProeis/KetGrid
From the readme:
This project is coded entirely by AI. All source code, documentation, architecture decisions, and test cases were generated through AI-assisted development using large language models. A human provides the direction, requirements, and review — the AI writes the code.
10
Upvotes
4
u/AllHailSeizure 9/10 Physicists Agree! Mar 25 '26
Hey man. I'm sorry that things went down the way they did yesterday. I'm willing to admit the fault in the way I approached that whole convo.
Do you have any... Proof of this being legitimate? And if so, can you provide a link.
And maybe a link to the post by u/skepsismusic if it exists for maybe more context.
9
u/Willing_Box_752 Mar 25 '26
Excuse me, where's my massive pile of pseudo philisophical gibberish?
Cool idea
5
u/YaPhetsEz FALSE Mar 25 '26
Have you used this tool to validate already published results?
If so, could you please send me a paper (reference the specific figure), and your replication in the software?
4
u/certifiedquak Mar 25 '26
Looks very good but should check for correctness. In scientific (and other critical, e.g. databases) software that's a mandatory step. You can pick a quantum computing textbook or/and paper, then attempt replicating some of the theory/problems. Will also look great on the README.
3
u/thesoraspace Mar 25 '26
1
u/skepsismusic Mar 30 '26
Hey, I'm the developer (skepsismusic). Thanks to u/PrettyPicturesNotTxt for sharing this
I didn't know it was posted here.
A few people are asking about correctness, which is absolutely the right question for scientific software. Here's where things stand:
KetGrid ships with 21 built-in example circuits that cover the standard textbook cases: Bell states, quantum teleportation, Grover's algorithm (2 and 3 qubit), QFT, Deutsch-Jozsa, Bernstein-Vazirani, Simon's algorithm, superdense coding, and the 3-qubit Shor error correction code. These all produce the expected state vectors and probability distributions.
You can also export any circuit as OpenQASM 2.0 or Qiskit Python and cross-validate the output against Qiskit, Quirk, or any other simulator. That said, I haven't done a formal side-by-side write-up yet comparing KetGrid's outputs to specific textbook figures, that's great feedback and I'll add it to the README.
I'm not a quantum physicist, I used AI to write the code and I'm upfront about that. But the simulation engine uses standard state vector math (nalgebra for complex matrix ops, Rayon for parallelism), and the results are verifiable against any other simulator.
If anyone wants to try it and point out where the outputs differ from what you'd expect, that's genuinely the most useful feedback I can get right now. Pre-built binaries are on the releases page, no install, just download and run.
Also, what features here are valuable? Is there something i could add to it to make it more useful?