{"action":"created","comment":{"url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/comments/303947537","pull_request_review_id":262439335,"id":303947537,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMzk0NzUzNw==","diff_hunk":"@@ -305,8 +434,9 @@ def _map_state_to_bit_string(self, state: int, qureg: List[Qubit]) -> str:\n \n         for i in range(len(qureg)):","path":"src/quantuminspire/projectq/backend_qx.py","position":341,"original_position":341,"commit_id":"d25e9e0d7cbb9f32db74d9fef35885beb9d78103","original_commit_id":"d25e9e0d7cbb9f32db74d9fef35885beb9d78103","user":{"login":"qSaevar","id":39056113,"node_id":"MDQ6VXNlcjM5MDU2MTEz","avatar_url":"https://avatars0.githubusercontent.com/u/39056113?v=4","gravatar_id":"","url":"https://api.github.com/users/qSaevar","html_url":"https://github.com/qSaevar","followers_url":"https://api.github.com/users/qSaevar/followers","following_url":"https://api.github.com/users/qSaevar/following{/other_user}","gists_url":"https://api.github.com/users/qSaevar/gists{/gist_id}","starred_url":"https://api.github.com/users/qSaevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qSaevar/subscriptions","organizations_url":"https://api.github.com/users/qSaevar/orgs","repos_url":"https://api.github.com/users/qSaevar/repos","events_url":"https://api.github.com/users/qSaevar/events{/privacy}","received_events_url":"https://api.github.com/users/qSaevar/received_events","type":"User","site_admin":false},"body":"Ahh, because you did not change this line, that's why","created_at":"2019-07-16T14:39:36Z","updated_at":"2019-07-16T14:48:18Z","html_url":"https://github.com/QuTech-Delft/quantuminspire/pull/60#discussion_r303947537","pull_request_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/60","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/comments/303947537"},"html":{"href":"https://github.com/QuTech-Delft/quantuminspire/pull/60#discussion_r303947537"},"pull_request":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/60"}},"in_reply_to_id":303946944},"pull_request":{"url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/60","id":294879806,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk0ODc5ODA2","html_url":"https://github.com/QuTech-Delft/quantuminspire/pull/60","diff_url":"https://github.com/QuTech-Delft/quantuminspire/pull/60.diff","patch_url":"https://github.com/QuTech-Delft/quantuminspire/pull/60.patch","issue_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues/60","number":60,"state":"open","locked":false,"title":"[DEM-1016] Reuse ancilla qubits","user":{"login":"QFer","id":46991941,"node_id":"MDQ6VXNlcjQ2OTkxOTQx","avatar_url":"https://avatars2.githubusercontent.com/u/46991941?v=4","gravatar_id":"","url":"https://api.github.com/users/QFer","html_url":"https://github.com/QFer","followers_url":"https://api.github.com/users/QFer/followers","following_url":"https://api.github.com/users/QFer/following{/other_user}","gists_url":"https://api.github.com/users/QFer/gists{/gist_id}","starred_url":"https://api.github.com/users/QFer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QFer/subscriptions","organizations_url":"https://api.github.com/users/QFer/orgs","repos_url":"https://api.github.com/users/QFer/repos","events_url":"https://api.github.com/users/QFer/events{/privacy}","received_events_url":"https://api.github.com/users/QFer/received_events","type":"User","site_admin":false},"body":"* When the maximum number of qubits for the simulator is reached, de-allocate qubits are reused.\r\n* When a qubit is reused, a prep_z is added for this qubit. This prep_z is composed of a measurement of this qubit, followed by a conditional X on this qubit\r\n* The allocation and deallocation is adjusted, so we keep track of the allocation of a physical bit to a simulation bit.\r\n* When the backend is a hardware backend, the ancilla bits are NOT re-used.\r\n","created_at":"2019-07-05T13:36:40Z","updated_at":"2019-07-16T14:48:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc3d3c785242e309bd6a6fb7ee74e759b84db8e8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/60/commits","review_comments_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/60/comments","review_comment_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues/60/comments","statuses_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/statuses/d25e9e0d7cbb9f32db74d9fef35885beb9d78103","head":{"label":"QuTech-Delft:feature/DEM-1016/reuse_ancilla_qubits","ref":"feature/DEM-1016/reuse_ancilla_qubits","sha":"d25e9e0d7cbb9f32db74d9fef35885beb9d78103","user":{"login":"QuTech-Delft","id":42680367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNjgwMzY3","avatar_url":"https://avatars1.githubusercontent.com/u/42680367?v=4","gravatar_id":"","url":"https://api.github.com/users/QuTech-Delft","html_url":"https://github.com/QuTech-Delft","followers_url":"https://api.github.com/users/QuTech-Delft/followers","following_url":"https://api.github.com/users/QuTech-Delft/following{/other_user}","gists_url":"https://api.github.com/users/QuTech-Delft/gists{/gist_id}","starred_url":"https://api.github.com/users/QuTech-Delft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuTech-Delft/subscriptions","organizations_url":"https://api.github.com/users/QuTech-Delft/orgs","repos_url":"https://api.github.com/users/QuTech-Delft/repos","events_url":"https://api.github.com/users/QuTech-Delft/events{/privacy}","received_events_url":"https://api.github.com/users/QuTech-Delft/received_events","type":"Organization","site_admin":false},"repo":{"id":152745582,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI3NDU1ODI=","name":"quantuminspire","full_name":"QuTech-Delft/quantuminspire","private":false,"owner":{"login":"QuTech-Delft","id":42680367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNjgwMzY3","avatar_url":"https://avatars1.githubusercontent.com/u/42680367?v=4","gravatar_id":"","url":"https://api.github.com/users/QuTech-Delft","html_url":"https://github.com/QuTech-Delft","followers_url":"https://api.github.com/users/QuTech-Delft/followers","following_url":"https://api.github.com/users/QuTech-Delft/following{/other_user}","gists_url":"https://api.github.com/users/QuTech-Delft/gists{/gist_id}","starred_url":"https://api.github.com/users/QuTech-Delft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuTech-Delft/subscriptions","organizations_url":"https://api.github.com/users/QuTech-Delft/orgs","repos_url":"https://api.github.com/users/QuTech-Delft/repos","events_url":"https://api.github.com/users/QuTech-Delft/events{/privacy}","received_events_url":"https://api.github.com/users/QuTech-Delft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/QuTech-Delft/quantuminspire","description":"Quantum Inspire SDK","fork":false,"url":"https://api.github.com/repos/QuTech-Delft/quantuminspire","forks_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/forks","keys_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/teams","hooks_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/hooks","issue_events_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues/events{/number}","events_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/events","assignees_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/assignees{/user}","branches_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/branches{/branch}","tags_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/tags","blobs_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/statuses/{sha}","languages_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/languages","stargazers_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/stargazers","contributors_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/contributors","subscribers_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/subscribers","subscription_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/subscription","commits_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/contents/{+path}","compare_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/merges","archive_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/downloads","issues_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues{/number}","pulls_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls{/number}","milestones_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/milestones{/number}","notifications_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/labels{/name}","releases_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/releases{/id}","deployments_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/deployments","created_at":"2018-10-12T12:14:11Z","updated_at":"2019-07-11T09:06:29Z","pushed_at":"2019-07-11T12:08:15Z","git_url":"git://github.com/QuTech-Delft/quantuminspire.git","ssh_url":"git@github.com:QuTech-Delft/quantuminspire.git","clone_url":"https://github.com/QuTech-Delft/quantuminspire.git","svn_url":"https://github.com/QuTech-Delft/quantuminspire","homepage":null,"size":2304,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":2,"watchers":11,"default_branch":"dev"}},"base":{"label":"QuTech-Delft:dev","ref":"dev","sha":"a653ab97db5dda201dd73fa20d132b081dc29363","user":{"login":"QuTech-Delft","id":42680367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNjgwMzY3","avatar_url":"https://avatars1.githubusercontent.com/u/42680367?v=4","gravatar_id":"","url":"https://api.github.com/users/QuTech-Delft","html_url":"https://github.com/QuTech-Delft","followers_url":"https://api.github.com/users/QuTech-Delft/followers","following_url":"https://api.github.com/users/QuTech-Delft/following{/other_user}","gists_url":"https://api.github.com/users/QuTech-Delft/gists{/gist_id}","starred_url":"https://api.github.com/users/QuTech-Delft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuTech-Delft/subscriptions","organizations_url":"https://api.github.com/users/QuTech-Delft/orgs","repos_url":"https://api.github.com/users/QuTech-Delft/repos","events_url":"https://api.github.com/users/QuTech-Delft/events{/privacy}","received_events_url":"https://api.github.com/users/QuTech-Delft/received_events","type":"Organization","site_admin":false},"repo":{"id":152745582,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI3NDU1ODI=","name":"quantuminspire","full_name":"QuTech-Delft/quantuminspire","private":false,"owner":{"login":"QuTech-Delft","id":42680367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNjgwMzY3","avatar_url":"https://avatars1.githubusercontent.com/u/42680367?v=4","gravatar_id":"","url":"https://api.github.com/users/QuTech-Delft","html_url":"https://github.com/QuTech-Delft","followers_url":"https://api.github.com/users/QuTech-Delft/followers","following_url":"https://api.github.com/users/QuTech-Delft/following{/other_user}","gists_url":"https://api.github.com/users/QuTech-Delft/gists{/gist_id}","starred_url":"https://api.github.com/users/QuTech-Delft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuTech-Delft/subscriptions","organizations_url":"https://api.github.com/users/QuTech-Delft/orgs","repos_url":"https://api.github.com/users/QuTech-Delft/repos","events_url":"https://api.github.com/users/QuTech-Delft/events{/privacy}","received_events_url":"https://api.github.com/users/QuTech-Delft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/QuTech-Delft/quantuminspire","description":"Quantum Inspire SDK","fork":false,"url":"https://api.github.com/repos/QuTech-Delft/quantuminspire","forks_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/forks","keys_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/teams","hooks_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/hooks","issue_events_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues/events{/number}","events_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/events","assignees_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/assignees{/user}","branches_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/branches{/branch}","tags_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/tags","blobs_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/statuses/{sha}","languages_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/languages","stargazers_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/stargazers","contributors_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/contributors","subscribers_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/subscribers","subscription_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/subscription","commits_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/contents/{+path}","compare_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/merges","archive_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/downloads","issues_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues{/number}","pulls_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls{/number}","milestones_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/milestones{/number}","notifications_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/labels{/name}","releases_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/releases{/id}","deployments_url":"https://api.github.com/repos/QuTech-Delft/quantuminspire/deployments","created_at":"2018-10-12T12:14:11Z","updated_at":"2019-07-11T09:06:29Z","pushed_at":"2019-07-11T12:08:15Z","git_url":"git://github.com/QuTech-Delft/quantuminspire.git","ssh_url":"git@github.com:QuTech-Delft/quantuminspire.git","clone_url":"https://github.com/QuTech-Delft/quantuminspire.git","svn_url":"https://github.com/QuTech-Delft/quantuminspire","homepage":null,"size":2304,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":2,"watchers":11,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/60"},"html":{"href":"https://github.com/QuTech-Delft/quantuminspire/pull/60"},"issue":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues/60"},"comments":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/QuTech-Delft/quantuminspire/statuses/d25e9e0d7cbb9f32db74d9fef35885beb9d78103"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"qSaevar"}}