TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Quantum Computing – Concept/Code Review (Qiskit Impl.)

2 点作者 datafatmunger将近 5 年前
Hello! I&#x27;m new to this stuff, so please be gentle, but I&#x27;m looking for feedback on the follow code sample which is an attempt at a sort of &quot;homomorphic encryption&quot; 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&#x27;m leveraging quantum teleportation to get the qubit from Alice to Bob, which is probably not strictly necessary, if there was a &quot;quantum internet&quot; (a mechanism to send qubits around), but I&#x27;m assuming classical information transfer between the 2 parties.<p>I&#x27;m not a student, this is not homework. Just looking for feedback.<p>Code: https:&#x2F;&#x2F;gist.github.com&#x2F;datafatmunger&#x2F;9f881d362a92b533af8400f6f85f8ffc<p>Thank you!

暂无评论

暂无评论