Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: