The implementation here is very simple:
* Alice encrypts 1 qubit, sends it to Bob.
* Bob performs a bit flip (on the encrypted value), sends the value back to Alice.
* Alice decrypts the result.
I'm leveraging quantum teleportation to get the qubit from Alice to Bob, which is probably not strictly necessary, if there was a "quantum internet" (a mechanism to send qubits around), but I'm assuming classical information transfer between the 2 parties.I'm not a student, this is not homework. Just looking for feedback.
Code: https://gist.github.com/datafatmunger/9f881d362a92b533af8400f6f85f8ffc
Thank you!