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 some basic enanglement tests #26

Closed oxarbitrage closed 3 years ago

oxarbitrage commented 3 years ago

I was working with some basic entanglement so i created a few tests. Feel free to discord them if they are too basic or stuff already tested somewhere else.

There are also a few TODOSs i added to the code that i can try to fix in the future.

Renmusxd commented 3 years ago

Sorry - taking me a while to get to this. I'll consider whether an entanglement unit test could get a little fancier. Right now it seems to just be checking that the hadamard gate works as expected which is already covered by stuff like the CSWAP test. But something more interesting along these lines could be useful to have.

oxarbitrage commented 3 years ago

No worries, i am just trying to understand how the software works and learning some quantum computing at the same time so probably some code i send will not be good enough to be included. I think we can close it, i can probably try to make something a bit different. Feel free to send suggestions on what you will like to see in a better entanglement test :)

Renmusxd commented 3 years ago

Yeah - I may come up with some good entanglement ideas after the summer. I will be taking a quantum computing course so will likely just implement some of the ideas we talk about as unit tests.

I'll close this for now but reference issues #2 and #7 so this isn't forgotten.