{"author_url":"https://blog.hatena.ne.jp/derwind/","description":"\u8907\u6570\u91cf\u5b50\u30d3\u30c3\u30c8\u3068\u3082\u3064\u308c\u72b6\u614b \u3092\u8aad\u3093\u3067\u3044\u304d\u3001unitary_simulator \u306e\u3068\u3053\u308d\u307e\u3067\u6765\u305f\u3002 qc = QuantumCircuit(2) qc.h(0) qc.x(1) qc.draw('mpl') \u306f\u6b21\u306e\u3088\u3046\u306a\u56de\u8def\u3067\u8868\u3055\u308c\u308b\u3002\u3053\u308c\u306b\u3064\u3044\u3066 backend = Aer.get_backend('unitary_simulator') unitary = execute(qc,backend).result().get_unitary() print(np.round(unitary, 4)) \u3092\u5b9f\u884c\u3059\u308b\u3068 [[ 0. +0.j 0. +0.j 0.7071+0.j 0.7071-0.j]\u2026","categories":["quantum_computing"],"url":"https://randommemory.hatenablog.com/entry/2022/01/17/023905","provider_url":"https://hatena.blog","title":"Qiskit (10)","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","provider_name":"Hatena Blog","published":"2022-01-17 02:39:05","width":"100%","version":"1.0","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2022%2F01%2F17%2F023905\" title=\"Qiskit (10) - \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>","type":"rich","author_name":"derwind","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20220117/20220117023145.png","blog_url":"https://randommemory.hatenablog.com/"}