pyqubits v0.1
Note, 22-May-2015: I’ve deprecated this repository/code for now, as it is not useful.
So for some research I’m currently doing I wanted to be able to simulate a little quantum enrionment where I could measure particular states in particular bases.
There are a few quantum simulation environments around:
but I decided to ignore each of these for different reasons. Mostly I didn’t see how to do what I wanted to do immediately, in any of them, and also because I wanted to see what would be involved in doing such a thing.
So to this end I have published v0.1 of pyqubits.
At the moment, everything is very simple. States can be created like so
from pyqubits.statefuncs import state
= state("0")
s0 = state("1") s1
and measurement outcomes can be obtained like so
from pyqubits.statefuncs import state, measurePurely
from pyqubits.bases import Computational
= state("+1")
s0 = measurePurely(s0, basis=Computational)
(a, s)
print("a", a)
print("s", s)
and that’s really all you can do that the moment! If you use it, feel free to email me, and report any issues/feature requests on the github page: pyqubits issues. With any luck, in later posts I’ll add a bit more, and comment on how I am using it!