{"action":"created","issue":{"url":"https://api.github.com/repos/QISKit/qiskit-core/issues/579","repository_url":"https://api.github.com/repos/QISKit/qiskit-core","labels_url":"https://api.github.com/repos/QISKit/qiskit-core/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/QISKit/qiskit-core/issues/579/comments","events_url":"https://api.github.com/repos/QISKit/qiskit-core/issues/579/events","html_url":"https://github.com/QISKit/qiskit-core/pull/579","id":333568846,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NzQ4MDAx","number":579,"title":"[WIP] Matplotlib-based circuit drawer","user":{"login":"t-imamichi","id":31178928,"node_id":"MDQ6VXNlcjMxMTc4OTI4","avatar_url":"https://avatars3.githubusercontent.com/u/31178928?v=4","gravatar_id":"","url":"https://api.github.com/users/t-imamichi","html_url":"https://github.com/t-imamichi","followers_url":"https://api.github.com/users/t-imamichi/followers","following_url":"https://api.github.com/users/t-imamichi/following{/other_user}","gists_url":"https://api.github.com/users/t-imamichi/gists{/gist_id}","starred_url":"https://api.github.com/users/t-imamichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-imamichi/subscriptions","organizations_url":"https://api.github.com/users/t-imamichi/orgs","repos_url":"https://api.github.com/users/t-imamichi/repos","events_url":"https://api.github.com/users/t-imamichi/events{/privacy}","received_events_url":"https://api.github.com/users/t-imamichi/received_events","type":"User","site_admin":false},"labels":[{"id":933835141,"node_id":"MDU6TGFiZWw5MzM4MzUxNDE=","url":"https://api.github.com/repos/QISKit/qiskit-core/labels/priority:%20low","name":"priority: low","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"ajavadia","id":8622381,"node_id":"MDQ6VXNlcjg2MjIzODE=","avatar_url":"https://avatars2.githubusercontent.com/u/8622381?v=4","gravatar_id":"","url":"https://api.github.com/users/ajavadia","html_url":"https://github.com/ajavadia","followers_url":"https://api.github.com/users/ajavadia/followers","following_url":"https://api.github.com/users/ajavadia/following{/other_user}","gists_url":"https://api.github.com/users/ajavadia/gists{/gist_id}","starred_url":"https://api.github.com/users/ajavadia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajavadia/subscriptions","organizations_url":"https://api.github.com/users/ajavadia/orgs","repos_url":"https://api.github.com/users/ajavadia/repos","events_url":"https://api.github.com/users/ajavadia/events{/privacy}","received_events_url":"https://api.github.com/users/ajavadia/received_events","type":"User","site_admin":false},"assignees":[{"login":"ajavadia","id":8622381,"node_id":"MDQ6VXNlcjg2MjIzODE=","avatar_url":"https://avatars2.githubusercontent.com/u/8622381?v=4","gravatar_id":"","url":"https://api.github.com/users/ajavadia","html_url":"https://github.com/ajavadia","followers_url":"https://api.github.com/users/ajavadia/followers","following_url":"https://api.github.com/users/ajavadia/following{/other_user}","gists_url":"https://api.github.com/users/ajavadia/gists{/gist_id}","starred_url":"https://api.github.com/users/ajavadia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajavadia/subscriptions","organizations_url":"https://api.github.com/users/ajavadia/orgs","repos_url":"https://api.github.com/users/ajavadia/repos","events_url":"https://api.github.com/users/ajavadia/events{/privacy}","received_events_url":"https://api.github.com/users/ajavadia/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/QISKit/qiskit-core/milestones/3","html_url":"https://github.com/QISKit/qiskit-core/milestone/3","labels_url":"https://api.github.com/repos/QISKit/qiskit-core/milestones/3/labels","id":3457414,"node_id":"MDk6TWlsZXN0b25lMzQ1NzQxNA==","number":3,"title":"0.5.5","description":"Intermediate bug-fixing release.","creator":{"login":"delapuente","id":757942,"node_id":"MDQ6VXNlcjc1Nzk0Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/757942?v=4","gravatar_id":"","url":"https://api.github.com/users/delapuente","html_url":"https://github.com/delapuente","followers_url":"https://api.github.com/users/delapuente/followers","following_url":"https://api.github.com/users/delapuente/following{/other_user}","gists_url":"https://api.github.com/users/delapuente/gists{/gist_id}","starred_url":"https://api.github.com/users/delapuente/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delapuente/subscriptions","organizations_url":"https://api.github.com/users/delapuente/orgs","repos_url":"https://api.github.com/users/delapuente/repos","events_url":"https://api.github.com/users/delapuente/events{/privacy}","received_events_url":"https://api.github.com/users/delapuente/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2018-06-27T20:41:51Z","updated_at":"2018-06-27T21:34:48Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2018-06-19T08:28:51Z","updated_at":"2018-06-28T03:53:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/QISKit/qiskit-core/pulls/579","html_url":"https://github.com/QISKit/qiskit-core/pull/579","diff_url":"https://github.com/QISKit/qiskit-core/pull/579.diff","patch_url":"https://github.com/QISKit/qiskit-core/pull/579.patch"},"body":"<!--\r\n⚠️ If you do not respect this template, your pull request will be closed.\r\n⚠️ Your pull request title should be short detailed and understandable for all.\r\n⚠️ Also, please add it in the CHANGELOG file under Unreleased section.\r\n⚠️ If your pull request fixes an open issue, please link to the issue.\r\n\r\n✅ I have added the tests to cover my changes.\r\n✅ I have updated the documentation accordingly.\r\n✅ I have read the CONTRIBUTING document.\r\n-->\r\n\r\n### Summary\r\n\r\nWe implemented a matplotlib-based circuit drawer, which is a drop-in replacement of `latex_drawer`.\r\n\r\n### Details and comments\r\n\r\n`matplotlib_drawer` supports all functionality as `latex_drawer`.\r\nUsers can customize the style of the drawing.\r\nWe will write the details in a notebook of qiskit-tutorial.\r\n\r\nExample (test.py):\r\n```\r\nfrom math import pi\r\nfrom qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister\r\nfrom qiskit.tools.matplotlibdrawer import matplotlib_drawer\r\n\r\nqr = QuantumRegister(3, 'q')\r\ncr = ClassicalRegister(3, 'c')\r\ncircuit = QuantumCircuit(qr, cr)\r\ncircuit.x(qr[0])\r\ncircuit.y(qr[0])\r\ncircuit.z(qr[0])\r\ncircuit.barrier(qr[0])\r\ncircuit.barrier(qr[1])\r\ncircuit.barrier(qr[2])\r\ncircuit.h(qr[0])\r\ncircuit.s(qr[0])\r\ncircuit.sdg(qr[0])\r\ncircuit.t(qr[0])\r\ncircuit.tdg(qr[0])\r\ncircuit.iden(qr[0])\r\ncircuit.reset(qr[0])\r\ncircuit.rx(pi, qr[0])\r\ncircuit.ry(pi, qr[0])\r\ncircuit.rz(pi, qr[0])\r\ncircuit.u0(pi, qr[0])\r\ncircuit.u1(pi, qr[0])\r\ncircuit.u2(pi, pi, qr[0])\r\ncircuit.u3(pi, pi, pi, qr[0])\r\ncircuit.swap(qr[0], qr[1])\r\ncircuit.cx(qr[0], qr[1])\r\ncircuit.cy(qr[0], qr[1])\r\ncircuit.cz(qr[0], qr[1])\r\ncircuit.ch(qr[0], qr[1])\r\ncircuit.cu1(pi, qr[0], qr[1])\r\ncircuit.cu3(pi, pi, pi, qr[0], qr[1])\r\ncircuit.crz(pi, qr[0], qr[1])\r\ncircuit.ccx(qr[0], qr[1], qr[2])\r\ncircuit.cswap(qr[0], qr[1], qr[2])\r\ncircuit.measure(qr, cr)\r\nmatplotlib_drawer(circuit, filename='tmp.pdf') # without barrier\r\nmatplotlib_drawer(circuit, filename='tmp2.pdf', style={'plotbarrier': True}) # with barrier\r\n```\r\nResult:\r\n(without barrier, same style as latex_drawer)\r\n![image](https://user-images.githubusercontent.com/31178928/41585518-4a9852be-73e5-11e8-85c1-eca5abdb8086.png)\r\n\r\n(with barrier)\r\n![image](https://user-images.githubusercontent.com/31178928/41585766-efe9c6da-73e5-11e8-8c6f-2ef65907dbef.png)\r\n\r\n---\r\nAli: this resolves #311 \r\n"},"comment":{"url":"https://api.github.com/repos/QISKit/qiskit-core/issues/comments/400902787","html_url":"https://github.com/QISKit/qiskit-core/pull/579#issuecomment-400902787","issue_url":"https://api.github.com/repos/QISKit/qiskit-core/issues/579","id":400902787,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDkwMjc4Nw==","user":{"login":"t-imamichi","id":31178928,"node_id":"MDQ6VXNlcjMxMTc4OTI4","avatar_url":"https://avatars3.githubusercontent.com/u/31178928?v=4","gravatar_id":"","url":"https://api.github.com/users/t-imamichi","html_url":"https://github.com/t-imamichi","followers_url":"https://api.github.com/users/t-imamichi/followers","following_url":"https://api.github.com/users/t-imamichi/following{/other_user}","gists_url":"https://api.github.com/users/t-imamichi/gists{/gist_id}","starred_url":"https://api.github.com/users/t-imamichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-imamichi/subscriptions","organizations_url":"https://api.github.com/users/t-imamichi/orgs","repos_url":"https://api.github.com/users/t-imamichi/repos","events_url":"https://api.github.com/users/t-imamichi/events{/privacy}","received_events_url":"https://api.github.com/users/t-imamichi/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T03:53:27Z","updated_at":"2018-06-28T03:53:27Z","author_association":"CONTRIBUTOR","body":"I tried to split `_circuit_visualization.py` in the following branch. https://github.com/t-imamichi/qiskit-core/tree/split_drawer"}}
{"actor":{"display_login":"t-imamichi"}}