{"action":"created","comment":{"url":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/comments/227165427","pull_request_review_id":167142693,"id":227165427,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzE2NTQyNw==","diff_hunk":"@@ -981,3 +983,36 @@ def percolate_declares(program: Program) -> Program:\n     p._defined_gates = program._defined_gates\n \n     return p\n+\n+\n+def validate_protoquil(program: Program) -> None:","path":"pyquil/quil.py","position":37,"original_position":37,"commit_id":"ff0616e8be171b13f0b2344a47bd3d7616078ae1","original_commit_id":"ff0616e8be171b13f0b2344a47bd3d7616078ae1","user":{"login":"mpharrigan","id":4967059,"node_id":"MDQ6VXNlcjQ5NjcwNTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4967059?v=4","gravatar_id":"","url":"https://api.github.com/users/mpharrigan","html_url":"https://github.com/mpharrigan","followers_url":"https://api.github.com/users/mpharrigan/followers","following_url":"https://api.github.com/users/mpharrigan/following{/other_user}","gists_url":"https://api.github.com/users/mpharrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/mpharrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpharrigan/subscriptions","organizations_url":"https://api.github.com/users/mpharrigan/orgs","repos_url":"https://api.github.com/users/mpharrigan/repos","events_url":"https://api.github.com/users/mpharrigan/events{/privacy}","received_events_url":"https://api.github.com/users/mpharrigan/received_events","type":"User","site_admin":false},"body":"presumably there is some code further down in the stack we can ~~steal~~ use that does this verification prior to execution ","created_at":"2018-10-22T22:53:06Z","updated_at":"2018-10-22T22:53:07Z","html_url":"https://github.com/rigetticomputing/pyquil/pull/581#discussion_r227165427","pull_request_url":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/581","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/comments/227165427"},"html":{"href":"https://github.com/rigetticomputing/pyquil/pull/581#discussion_r227165427"},"pull_request":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/581"}},"in_reply_to_id":227164829},"pull_request":{"url":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/581","id":224819228,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODE5MjI4","html_url":"https://github.com/rigetticomputing/pyquil/pull/581","diff_url":"https://github.com/rigetticomputing/pyquil/pull/581.diff","patch_url":"https://github.com/rigetticomputing/pyquil/pull/581.patch","issue_url":"https://api.github.com/repos/rigetticomputing/pyquil/issues/581","number":581,"state":"open","locked":false,"title":"Update protoquil definition / checking","user":{"login":"lcapelluto","id":10730254,"node_id":"MDQ6VXNlcjEwNzMwMjU0","avatar_url":"https://avatars1.githubusercontent.com/u/10730254?v=4","gravatar_id":"","url":"https://api.github.com/users/lcapelluto","html_url":"https://github.com/lcapelluto","followers_url":"https://api.github.com/users/lcapelluto/followers","following_url":"https://api.github.com/users/lcapelluto/following{/other_user}","gists_url":"https://api.github.com/users/lcapelluto/gists{/gist_id}","starred_url":"https://api.github.com/users/lcapelluto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcapelluto/subscriptions","organizations_url":"https://api.github.com/users/lcapelluto/orgs","repos_url":"https://api.github.com/users/lcapelluto/repos","events_url":"https://api.github.com/users/lcapelluto/events{/privacy}","received_events_url":"https://api.github.com/users/lcapelluto/received_events","type":"User","site_admin":false},"body":"Add updated `validate_protoquil` function, use it for `is_protoquil` method of quil program. add tests.","created_at":"2018-10-22T21:24:35Z","updated_at":"2018-10-22T22:53:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b4500507a562976ca026e5c9beea5807cafb8b9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"karalekas","id":3578739,"node_id":"MDQ6VXNlcjM1Nzg3Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/3578739?v=4","gravatar_id":"","url":"https://api.github.com/users/karalekas","html_url":"https://github.com/karalekas","followers_url":"https://api.github.com/users/karalekas/followers","following_url":"https://api.github.com/users/karalekas/following{/other_user}","gists_url":"https://api.github.com/users/karalekas/gists{/gist_id}","starred_url":"https://api.github.com/users/karalekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karalekas/subscriptions","organizations_url":"https://api.github.com/users/karalekas/orgs","repos_url":"https://api.github.com/users/karalekas/repos","events_url":"https://api.github.com/users/karalekas/events{/privacy}","received_events_url":"https://api.github.com/users/karalekas/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/581/commits","review_comments_url":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/581/comments","review_comment_url":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rigetticomputing/pyquil/issues/581/comments","statuses_url":"https://api.github.com/repos/rigetticomputing/pyquil/statuses/ff0616e8be171b13f0b2344a47bd3d7616078ae1","head":{"label":"lcapelluto:update-definition-of-protoquil","ref":"update-definition-of-protoquil","sha":"ff0616e8be171b13f0b2344a47bd3d7616078ae1","user":{"login":"lcapelluto","id":10730254,"node_id":"MDQ6VXNlcjEwNzMwMjU0","avatar_url":"https://avatars1.githubusercontent.com/u/10730254?v=4","gravatar_id":"","url":"https://api.github.com/users/lcapelluto","html_url":"https://github.com/lcapelluto","followers_url":"https://api.github.com/users/lcapelluto/followers","following_url":"https://api.github.com/users/lcapelluto/following{/other_user}","gists_url":"https://api.github.com/users/lcapelluto/gists{/gist_id}","starred_url":"https://api.github.com/users/lcapelluto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcapelluto/subscriptions","organizations_url":"https://api.github.com/users/lcapelluto/orgs","repos_url":"https://api.github.com/users/lcapelluto/repos","events_url":"https://api.github.com/users/lcapelluto/events{/privacy}","received_events_url":"https://api.github.com/users/lcapelluto/received_events","type":"User","site_admin":false},"repo":{"id":153369031,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMzNjkwMzE=","name":"pyquil","full_name":"lcapelluto/pyquil","private":false,"owner":{"login":"lcapelluto","id":10730254,"node_id":"MDQ6VXNlcjEwNzMwMjU0","avatar_url":"https://avatars1.githubusercontent.com/u/10730254?v=4","gravatar_id":"","url":"https://api.github.com/users/lcapelluto","html_url":"https://github.com/lcapelluto","followers_url":"https://api.github.com/users/lcapelluto/followers","following_url":"https://api.github.com/users/lcapelluto/following{/other_user}","gists_url":"https://api.github.com/users/lcapelluto/gists{/gist_id}","starred_url":"https://api.github.com/users/lcapelluto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcapelluto/subscriptions","organizations_url":"https://api.github.com/users/lcapelluto/orgs","repos_url":"https://api.github.com/users/lcapelluto/repos","events_url":"https://api.github.com/users/lcapelluto/events{/privacy}","received_events_url":"https://api.github.com/users/lcapelluto/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lcapelluto/pyquil","description":"A Python library for quantum programming using Quil.","fork":true,"url":"https://api.github.com/repos/lcapelluto/pyquil","forks_url":"https://api.github.com/repos/lcapelluto/pyquil/forks","keys_url":"https://api.github.com/repos/lcapelluto/pyquil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lcapelluto/pyquil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lcapelluto/pyquil/teams","hooks_url":"https://api.github.com/repos/lcapelluto/pyquil/hooks","issue_events_url":"https://api.github.com/repos/lcapelluto/pyquil/issues/events{/number}","events_url":"https://api.github.com/repos/lcapelluto/pyquil/events","assignees_url":"https://api.github.com/repos/lcapelluto/pyquil/assignees{/user}","branches_url":"https://api.github.com/repos/lcapelluto/pyquil/branches{/branch}","tags_url":"https://api.github.com/repos/lcapelluto/pyquil/tags","blobs_url":"https://api.github.com/repos/lcapelluto/pyquil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lcapelluto/pyquil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lcapelluto/pyquil/git/refs{/sha}","trees_url":"https://api.github.com/repos/lcapelluto/pyquil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lcapelluto/pyquil/statuses/{sha}","languages_url":"https://api.github.com/repos/lcapelluto/pyquil/languages","stargazers_url":"https://api.github.com/repos/lcapelluto/pyquil/stargazers","contributors_url":"https://api.github.com/repos/lcapelluto/pyquil/contributors","subscribers_url":"https://api.github.com/repos/lcapelluto/pyquil/subscribers","subscription_url":"https://api.github.com/repos/lcapelluto/pyquil/subscription","commits_url":"https://api.github.com/repos/lcapelluto/pyquil/commits{/sha}","git_commits_url":"https://api.github.com/repos/lcapelluto/pyquil/git/commits{/sha}","comments_url":"https://api.github.com/repos/lcapelluto/pyquil/comments{/number}","issue_comment_url":"https://api.github.com/repos/lcapelluto/pyquil/issues/comments{/number}","contents_url":"https://api.github.com/repos/lcapelluto/pyquil/contents/{+path}","compare_url":"https://api.github.com/repos/lcapelluto/pyquil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lcapelluto/pyquil/merges","archive_url":"https://api.github.com/repos/lcapelluto/pyquil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lcapelluto/pyquil/downloads","issues_url":"https://api.github.com/repos/lcapelluto/pyquil/issues{/number}","pulls_url":"https://api.github.com/repos/lcapelluto/pyquil/pulls{/number}","milestones_url":"https://api.github.com/repos/lcapelluto/pyquil/milestones{/number}","notifications_url":"https://api.github.com/repos/lcapelluto/pyquil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lcapelluto/pyquil/labels{/name}","releases_url":"https://api.github.com/repos/lcapelluto/pyquil/releases{/id}","deployments_url":"https://api.github.com/repos/lcapelluto/pyquil/deployments","created_at":"2018-10-16T23:48:08Z","updated_at":"2018-10-22T21:16:04Z","pushed_at":"2018-10-22T22:20:17Z","git_url":"git://github.com/lcapelluto/pyquil.git","ssh_url":"git@github.com:lcapelluto/pyquil.git","clone_url":"https://github.com/lcapelluto/pyquil.git","svn_url":"https://github.com/lcapelluto/pyquil","homepage":"http://forest.rigetti.com","size":66899,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"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":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rigetticomputing:master","ref":"master","sha":"8eb5a29bd42658d9c29f05caf82acee7ec7ccc24","user":{"login":"rigetticomputing","id":16469771,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDY5Nzcx","avatar_url":"https://avatars1.githubusercontent.com/u/16469771?v=4","gravatar_id":"","url":"https://api.github.com/users/rigetticomputing","html_url":"https://github.com/rigetticomputing","followers_url":"https://api.github.com/users/rigetticomputing/followers","following_url":"https://api.github.com/users/rigetticomputing/following{/other_user}","gists_url":"https://api.github.com/users/rigetticomputing/gists{/gist_id}","starred_url":"https://api.github.com/users/rigetticomputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rigetticomputing/subscriptions","organizations_url":"https://api.github.com/users/rigetticomputing/orgs","repos_url":"https://api.github.com/users/rigetticomputing/repos","events_url":"https://api.github.com/users/rigetticomputing/events{/privacy}","received_events_url":"https://api.github.com/users/rigetticomputing/received_events","type":"Organization","site_admin":false},"repo":{"id":78470807,"node_id":"MDEwOlJlcG9zaXRvcnk3ODQ3MDgwNw==","name":"pyquil","full_name":"rigetticomputing/pyquil","private":false,"owner":{"login":"rigetticomputing","id":16469771,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDY5Nzcx","avatar_url":"https://avatars1.githubusercontent.com/u/16469771?v=4","gravatar_id":"","url":"https://api.github.com/users/rigetticomputing","html_url":"https://github.com/rigetticomputing","followers_url":"https://api.github.com/users/rigetticomputing/followers","following_url":"https://api.github.com/users/rigetticomputing/following{/other_user}","gists_url":"https://api.github.com/users/rigetticomputing/gists{/gist_id}","starred_url":"https://api.github.com/users/rigetticomputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rigetticomputing/subscriptions","organizations_url":"https://api.github.com/users/rigetticomputing/orgs","repos_url":"https://api.github.com/users/rigetticomputing/repos","events_url":"https://api.github.com/users/rigetticomputing/events{/privacy}","received_events_url":"https://api.github.com/users/rigetticomputing/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rigetticomputing/pyquil","description":"A Python library for quantum programming using Quil.","fork":false,"url":"https://api.github.com/repos/rigetticomputing/pyquil","forks_url":"https://api.github.com/repos/rigetticomputing/pyquil/forks","keys_url":"https://api.github.com/repos/rigetticomputing/pyquil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rigetticomputing/pyquil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rigetticomputing/pyquil/teams","hooks_url":"https://api.github.com/repos/rigetticomputing/pyquil/hooks","issue_events_url":"https://api.github.com/repos/rigetticomputing/pyquil/issues/events{/number}","events_url":"https://api.github.com/repos/rigetticomputing/pyquil/events","assignees_url":"https://api.github.com/repos/rigetticomputing/pyquil/assignees{/user}","branches_url":"https://api.github.com/repos/rigetticomputing/pyquil/branches{/branch}","tags_url":"https://api.github.com/repos/rigetticomputing/pyquil/tags","blobs_url":"https://api.github.com/repos/rigetticomputing/pyquil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rigetticomputing/pyquil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rigetticomputing/pyquil/git/refs{/sha}","trees_url":"https://api.github.com/repos/rigetticomputing/pyquil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rigetticomputing/pyquil/statuses/{sha}","languages_url":"https://api.github.com/repos/rigetticomputing/pyquil/languages","stargazers_url":"https://api.github.com/repos/rigetticomputing/pyquil/stargazers","contributors_url":"https://api.github.com/repos/rigetticomputing/pyquil/contributors","subscribers_url":"https://api.github.com/repos/rigetticomputing/pyquil/subscribers","subscription_url":"https://api.github.com/repos/rigetticomputing/pyquil/subscription","commits_url":"https://api.github.com/repos/rigetticomputing/pyquil/commits{/sha}","git_commits_url":"https://api.github.com/repos/rigetticomputing/pyquil/git/commits{/sha}","comments_url":"https://api.github.com/repos/rigetticomputing/pyquil/comments{/number}","issue_comment_url":"https://api.github.com/repos/rigetticomputing/pyquil/issues/comments{/number}","contents_url":"https://api.github.com/repos/rigetticomputing/pyquil/contents/{+path}","compare_url":"https://api.github.com/repos/rigetticomputing/pyquil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rigetticomputing/pyquil/merges","archive_url":"https://api.github.com/repos/rigetticomputing/pyquil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rigetticomputing/pyquil/downloads","issues_url":"https://api.github.com/repos/rigetticomputing/pyquil/issues{/number}","pulls_url":"https://api.github.com/repos/rigetticomputing/pyquil/pulls{/number}","milestones_url":"https://api.github.com/repos/rigetticomputing/pyquil/milestones{/number}","notifications_url":"https://api.github.com/repos/rigetticomputing/pyquil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rigetticomputing/pyquil/labels{/name}","releases_url":"https://api.github.com/repos/rigetticomputing/pyquil/releases{/id}","deployments_url":"https://api.github.com/repos/rigetticomputing/pyquil/deployments","created_at":"2017-01-09T21:30:22Z","updated_at":"2018-10-22T22:38:54Z","pushed_at":"2018-10-22T22:49:02Z","git_url":"git://github.com/rigetticomputing/pyquil.git","ssh_url":"git@github.com:rigetticomputing/pyquil.git","clone_url":"https://github.com/rigetticomputing/pyquil.git","svn_url":"https://github.com/rigetticomputing/pyquil","homepage":"http://forest.rigetti.com","size":66904,"stargazers_count":639,"watchers_count":639,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":163,"mirror_url":null,"archived":false,"open_issues_count":85,"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":163,"open_issues":85,"watchers":639,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/581"},"html":{"href":"https://github.com/rigetticomputing/pyquil/pull/581"},"issue":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/issues/581"},"comments":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/issues/581/comments"},"review_comments":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/581/comments"},"review_comment":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/pulls/581/commits"},"statuses":{"href":"https://api.github.com/repos/rigetticomputing/pyquil/statuses/ff0616e8be171b13f0b2344a47bd3d7616078ae1"}},"author_association":"NONE"}}
{"actor":{"display_login":"mpharrigan"}}