This code is mostly cribbed off of sigfpe's vector space monad. I'm following along in the Quantum Mechanics and Quantum Computation coursera class and coding up some of the examples.
$ ./sbt console
Try out some of the examples in the Examples object.
scala> runTeleport(state1)
Contributions welcome!