<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>derwind</author_name>
  <author_url>https://blog.hatena.ne.jp/derwind/</author_url>
  <blog_title>らんだむな記憶</blog_title>
  <blog_url>https://randommemory.hatenablog.com/</blog_url>
  <categories>
    <anon>quantum_computing</anon>
  </categories>
  <description>The Atoms of Computation の通りだけど。 def add(a, b): qc = QuantumCircuit(4, 2) if a != 0: qc.initialize([0, 1], 0) if b != 0: qc.initialize([0, 1], 1) qc.cx(0, 2) qc.cx(1, 2) qc.ccx(0, 1, 3) qc.measure(2, 0) qc.measure(3, 1) results = sim.run(qc).result() return [int(c) for c in sorted(results.get_counts…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2022%2F04%2F30%2F213332&quot; title=&quot; &amp;lt;QT&amp;gt; 量子半加算器 - らんだむな記憶&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20220430/20220430220653.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-04-30 21:33:32</published>
  <title> &lt;QT&gt; 量子半加算器</title>
  <type>rich</type>
  <url>https://randommemory.hatenablog.com/entry/2022/04/30/213332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
