Renmusxd / RustQIP

Quantum computing using rust. Efficient and a borrow-checked no cloning theorem!
https://docs.rs/qip/
MIT License
223 stars 18 forks source link

Add single qbit gates tests #24

Closed oxarbitrage closed 3 years ago

oxarbitrage commented 3 years ago

Feel free to ignore this PR if you think is too basic or don't have enough quality.

I am learning the basic of quantum computing using the simulator so i made this tests in order to see what they do in some more detail before moving into more advanced stuff.

Renmusxd commented 3 years ago

I'll merge this as is (except the almost_equal part). I may break it into separate tests for each gate in the future since that would give more information if something breaks.

oxarbitrage commented 3 years ago

Thanks! I will probably do more tests in the future to learn how everything works and will submit once i have something decent if you are ok with that.