Hacker News new | ask | show | jobs
by sampo 2431 days ago
> In quantum computation, a ket is a vector in a Hilbert space

The blog implements kets as 2-dimensional complex vectors, so I don't see any problem there. A 2-dimensional space is a Hilbert space.

1 comments

It’s woefully under-representing what a ket can be, and the data structure isn’t amenable to extension to a broader set of states. A one qubit state lives in a Hilbert space just as a one element list is still a list.