Hello! I'm new to this stuff, so please be gentle, but I'm looking for feedback on the follow code sample which is an attempt at a sort of "homomorphic encryption" scheme. Basically Alice encrypts some operands, sends them to Bob ... who performs some operations (without knowing the operands), sends them back to Alice who then decrypts the results.<p>The implementation here is very simple:<p><pre><code> * 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.
</code></pre>
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.<p>I'm not a student, this is not homework. Just looking for feedback.<p>Code: https://gist.github.com/datafatmunger/9f881d362a92b533af8400f6f85f8ffc<p>Thank you!