{"action":"created","issue":{"url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/704","repository_url":"https://api.github.com/repos/Qiskit/qiskit-terra","labels_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/704/labels{/name}","comments_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/704/comments","events_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/704/events","html_url":"https://github.com/Qiskit/qiskit-terra/issues/704","id":346429888,"node_id":"MDU6SXNzdWUzNDY0Mjk4ODg=","number":704,"title":"Refactoring the compilation flow","user":{"login":"jaygambetta","id":15731369,"node_id":"MDQ6VXNlcjE1NzMxMzY5","avatar_url":"https://avatars2.githubusercontent.com/u/15731369?v=4","gravatar_id":"","url":"https://api.github.com/users/jaygambetta","html_url":"https://github.com/jaygambetta","followers_url":"https://api.github.com/users/jaygambetta/followers","following_url":"https://api.github.com/users/jaygambetta/following{/other_user}","gists_url":"https://api.github.com/users/jaygambetta/gists{/gist_id}","starred_url":"https://api.github.com/users/jaygambetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaygambetta/subscriptions","organizations_url":"https://api.github.com/users/jaygambetta/orgs","repos_url":"https://api.github.com/users/jaygambetta/repos","events_url":"https://api.github.com/users/jaygambetta/events{/privacy}","received_events_url":"https://api.github.com/users/jaygambetta/received_events","type":"User","site_admin":false},"labels":[{"id":552526583,"node_id":"MDU6TGFiZWw1NTI1MjY1ODM=","url":"https://api.github.com/repos/Qiskit/qiskit-terra/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb","default":false},{"id":956408251,"node_id":"MDU6TGFiZWw5NTY0MDgyNTE=","url":"https://api.github.com/repos/Qiskit/qiskit-terra/labels/type:%20epic","name":"type: epic","color":"3E4B9E","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-01T02:58:58Z","updated_at":"2018-08-09T20:29:25Z","closed_at":null,"author_association":"MEMBER","body":"### What is the expected enhancement?\r\n\r\nSubtasks to clean up the compilation flow, make it more modular, parallelize it, etc.\r\n\r\n - [ ] Separate Circuits from DAGs from Qobj, only work with dags in the transpile (PR #705).\r\n - [ ] Make sure dag has all the fields that circuits have so circuits don't need to be passed around (PR #705).\r\n - [ ] Only have `compile()` in the wrapper.\r\n - [ ] Remove the other output formats of transpile and only support dag\r\n - [ ] Start to add more passes in transpile.\r\n - [ ] Think about whether we want compilation of a batch where `coupling_map`, `basis_gates`, or `initial_layout` are different for each circuit.\r\n - [ ] Swap mapper pass (PR #757)\r\n - [ ] Unroll pass\r\n - [ ] Rotation merge pass \r\n - [ ] There are two seeds that do different things (simulator seed, optimizer seed and should not be the same)\r\n - [ ] Used a single standard for intitial_layout\r\n - [ ] Make using_qiskit_level_2 and 3 work correctly by allowing compile once/execute twice on different backends.\r\n"},"comment":{"url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/comments/411886712","html_url":"https://github.com/Qiskit/qiskit-terra/issues/704#issuecomment-411886712","issue_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/704","id":411886712,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTg4NjcxMg==","user":{"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},"created_at":"2018-08-09T20:29:25Z","updated_at":"2018-08-09T20:29:25Z","author_association":"MEMBER","body":"We decided to alter the format of the `initial_layout` to something like this:\r\n```\r\n[('q0', 0), ('q1', 0), None, ('q1', 1), ('q0', 0)]\r\n```\r\nwhere each tuple specifies one *circuit* qubit, and each position in the list corresponds to a physical qubit on the chip (in this case 5 qubits). The physical qubits are assumed to be ordered (Qobj has this assumption too).\r\n\r\nThis will hopefull have the flexibility of the current dictionary approach, but much easier to write (which was the goal of #727)."}}
{"actor":{"display_login":"ajavadia"}}