News for hackers. Stuff that matters.
Re:Exploring Quantum Computing with JavaScript: A Beginner's... by ingen0s on Thursday December 07, 2023 @06:34AM (#38555295)
Excitement 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!
Re:Exploring Quantum Computing with JavaScript: A Beginner's... by quickthrower2 on Thursday December 07, 2023 @10:31PM (#38565116)
Thanks. This seems like the friendliest introduction to quantum computing I have seen.

Is it accurate? I though quantum mechanics needed complex numbers?

Re:Exploring Quantum Computing with JavaScript: A Beginner's... by eigenket on Friday December 08, 2023 @01:42AM (#38566087)
In 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.

Re:Exploring Quantum Computing with JavaScript: A Beginner's... by dr_dshiv on Thursday December 07, 2023 @10:36PM (#38565147)
Want to connect to p5.js for qreative computing
Re:Exploring Quantum Computing with JavaScript: A Beginner's... by m3kw9 on Thursday December 07, 2023 @11:24PM (#38565426)
Doesn’t seem to compute anything useful though
Re:Exploring Quantum Computing with JavaScript: A Beginner's... by bowsamic on Friday December 08, 2023 @08:41AM (#38568918)
There are very few useful quantum algorithms, especially ones that don't include significant classical computing
Re:Exploring Quantum Computing with JavaScript: A Beginner's... by recursive on Friday December 08, 2023 @11:45AM (#38571026)
At least that part is realistic.
Re:Exploring Quantum Computing with JavaScript: A Beginner's... by trurl42 on Friday December 08, 2023 @05:23AM (#38567352)
This 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.

Re:Exploring Quantum Computing with JavaScript: A Beginner's... by eigenket on Friday December 08, 2023 @07:39AM (#38568292)
Yeah this is closer to simulating a classical coin (albeit one with three sides) than a qubit.
Re:Exploring Quantum Computing with JavaScript: A Beginner's... by reikonomusha on Friday December 08, 2023 @08:10AM (#38568560)
This 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/

Re:Exploring Quantum Computing with JavaScript: A Beginner's... by swernli on Friday December 08, 2023 @10:08AM (#38569914)
An alternative to this that also runs in the browser is the Azure Quantum katas at 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#)

Re:Exploring Quantum Computing with JavaScript: A Beginner's... by ausbin on Friday December 08, 2023 @12:52PM (#38571894)
Hi Stefan. I use the Q# playground a lot, it's very convenient so thank you sir

https://microsoft.github.io/qsharp/

Re:Exploring Quantum Computing with JavaScript: A Beginner's... by swernli on Friday December 08, 2023 @02:47PM (#38573290)
Hi 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/. Let us know what you think!