Re:What is a ket? How do traits work? Quantum computing in R...
by reikonomusha on Monday October 28, 2019 @04:14PM
(#21381125)
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.
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.