{"blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","provider_name":"Hatena Blog","categories":["quantum_computing"],"type":"rich","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20220504/20220504221545.png","published":"2022-05-04 22:49:15","author_name":"derwind","blog_url":"https://randommemory.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/derwind/","title":"<QT> CX \u30b2\u30fc\u30c8\u306e\u53cd\u8ee2","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2022%2F05%2F04%2F224915\" title=\"&lt;QT&gt; CX \u30b2\u30fc\u30c8\u306e\u53cd\u8ee2 - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","url":"https://randommemory.hatenablog.com/entry/2022/05/04/224915","provider_url":"https://hatena.blog","width":"100%","description":"\u3092\u898b\u305f\u3044\u3002 def create_circuit(q0, q1): qc = QuantumCircuit(2) if q0 != 0: qc.x(0) if q1 != 0: qc.x(1) qc.h(0) qc.h(1) qc.cx(0, 1) qc.h(0) qc.h(1) qc.measure_all() return qc \u304c\u56de\u8def\u306e\u5b9f\u88c5\u306b\u306a\u308b\u3002 $\\ket{10}$ \u3092\u5165\u529b\u3057\u3066\u307f\u3088\u3046\u3002$$ \\begin{align*} \\ket{10} \\xrightarrow{H \\otimes H}&\\ \\frac{1}{2}(\\ket{00} + \\ket{01} - \\ket{10} - \\\u2026"}