5 ms·
Exploring Quantum Computing with JavaScript: A Beginner's Guide
- ingen0s 3y agoExcitement after Darpas Q circuit breakthrough, just added a Rydberg gate to this JavaScrip Qubit class simulator. Soo much fun! Try it out! More coming soon!
- quickthrower2 3y agoThanks. This seems like the friendliest introduction to quantum computing I have seen. Is it accurate? I though quantum mechanics needed complex numbers?
- eigenket 3y agoIn general quantum mechanics requires complex numbers, in general quantum mechanics also requires more than a single qubit as well. This is a very simplistic (maybe minimal) example.
- dr_dshiv 3y agoWant to connect to p5.js for qreative computing
- m3kw9 3y agoDoesn’t seem to compute anything useful though
- trurl42 3y agoThis is not a very good explanation, nor is it useful for anything. A single qubit is not useful for computation and the way it is written doesn't generalize to more than a single qubit. The code doesn't even really simulate a single qubit properly, since it doesn't use complex numbers. What they call a "Rydberg gate" is not a gate at all. Most of the text feels like it's written by an AI.
- eigenket 3y agoYeah this is closer to simulating a classical coin (albeit one with three sides) than a qubit.
- reikonomusha 3y agoThis tutorial [1] shows you how to simulate an arbitrary number of qubits and arbitrary quantum gates of arbitrary dimension in about 150 lines of code. The article uses Common Lisp but has ports to OCaml, Rust, and Python. [1] https://www.stylewarning.com/posts/quantum-interpreter/ https://www.stylewarning.com/posts/quantum-interpreter/
- swernli 3y agoAn alternative to this that also runs in the browser is the Azure Quantum katas at https://quantum.microsoft.com/en-us/experience/quantum-katas https://quantum.microsoft.com/en-us/experience/quantum-katas. It has an introduction to quantum computing concepts with exercises in Q# you can evaluate in the browser, as well as a quantum focused Copilot you can use with login. (Full disclosure: I work on the team that builds the developer tools for Q#)
- ausbin 3y agoHi Stefan. I use the Q# playground a lot, it's very convenient so thank you sir https://microsoft.github.io/qsharp/ https://microsoft.github.io/qsharp/
- swernli 3y agoHi Austin, nice to see you on here! Glad you find it useful. If you want to try out the VSCode.dev experience too, check out https://vscode.dev/quantum/playground/ https://vscode.dev/quantum/playground/. Let us know what you think!