{"action":"created","comment":{"url":"https://api.github.com/repos/quantumlib/Cirq/pulls/comments/223160866","pull_request_review_id":162231908,"id":223160866,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzE2MDg2Ng==","diff_hunk":"@@ -0,0 +1,69 @@\n+# Copyright 2018 The Cirq Developers\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     https://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+from typing import Any, TypeVar\n+from typing_extensions import Protocol\n+from cirq.study import ParamResolver\n+\n+TDefault = TypeVar('TDefault')\n+\n+class SupportsParameterization(Protocol):\n+    \"\"\"An object that may be describable by a unitary matrix.\"\"\"","path":"cirq/protocols/resolve_parameters.py","position":null,"original_position":22,"commit_id":"6a73b1711df144c9b3797aeb53142d9c4be0b250","original_commit_id":"83cb95a804b4f5400b7532335db7715ce64218ce","user":{"login":"dstrain115","id":22484728,"node_id":"MDQ6VXNlcjIyNDg0NzI4","avatar_url":"https://avatars2.githubusercontent.com/u/22484728?v=4","gravatar_id":"","url":"https://api.github.com/users/dstrain115","html_url":"https://github.com/dstrain115","followers_url":"https://api.github.com/users/dstrain115/followers","following_url":"https://api.github.com/users/dstrain115/following{/other_user}","gists_url":"https://api.github.com/users/dstrain115/gists{/gist_id}","starred_url":"https://api.github.com/users/dstrain115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstrain115/subscriptions","organizations_url":"https://api.github.com/users/dstrain115/orgs","repos_url":"https://api.github.com/users/dstrain115/repos","events_url":"https://api.github.com/users/dstrain115/events{/privacy}","received_events_url":"https://api.github.com/users/dstrain115/received_events","type":"User","site_admin":false},"body":"Uh oh, it appears he has discovered my main programming tactic (cut and paste).\r\nFixed.","created_at":"2018-10-05T23:35:44Z","updated_at":"2018-10-05T23:35:44Z","html_url":"https://github.com/quantumlib/Cirq/pull/987#discussion_r223160866","pull_request_url":"https://api.github.com/repos/quantumlib/Cirq/pulls/987","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/quantumlib/Cirq/pulls/comments/223160866"},"html":{"href":"https://github.com/quantumlib/Cirq/pull/987#discussion_r223160866"},"pull_request":{"href":"https://api.github.com/repos/quantumlib/Cirq/pulls/987"}},"in_reply_to_id":223160377},"pull_request":{"url":"https://api.github.com/repos/quantumlib/Cirq/pulls/987","id":220847152,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwODQ3MTUy","html_url":"https://github.com/quantumlib/Cirq/pull/987","diff_url":"https://github.com/quantumlib/Cirq/pull/987.diff","patch_url":"https://github.com/quantumlib/Cirq/pull/987.patch","issue_url":"https://api.github.com/repos/quantumlib/Cirq/issues/987","number":987,"state":"open","locked":false,"title":"Add parameter resolution protocol","user":{"login":"dstrain115","id":22484728,"node_id":"MDQ6VXNlcjIyNDg0NzI4","avatar_url":"https://avatars2.githubusercontent.com/u/22484728?v=4","gravatar_id":"","url":"https://api.github.com/users/dstrain115","html_url":"https://github.com/dstrain115","followers_url":"https://api.github.com/users/dstrain115/followers","following_url":"https://api.github.com/users/dstrain115/following{/other_user}","gists_url":"https://api.github.com/users/dstrain115/gists{/gist_id}","starred_url":"https://api.github.com/users/dstrain115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstrain115/subscriptions","organizations_url":"https://api.github.com/users/dstrain115/orgs","repos_url":"https://api.github.com/users/dstrain115/repos","events_url":"https://api.github.com/users/dstrain115/events{/privacy}","received_events_url":"https://api.github.com/users/dstrain115/received_events","type":"User","site_admin":false},"body":"    - Add cirq.is_parameterized() and cirq.resolve_parameters() in Protocols\r\n    - Add _is_parameterized_() and _resolve_parameters_() magic methods to\r\n    several gate and operation classes\r\n    - Remove ParameterizableEffect and its references and a few references\r\n    to extensions.\r\n","created_at":"2018-10-05T23:24:36Z","updated_at":"2018-10-05T23:35:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f74bd9ed905fbd5f3fb3dc5fb308e4633c3b0ec","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Strilanc","id":79941,"node_id":"MDQ6VXNlcjc5OTQx","avatar_url":"https://avatars1.githubusercontent.com/u/79941?v=4","gravatar_id":"","url":"https://api.github.com/users/Strilanc","html_url":"https://github.com/Strilanc","followers_url":"https://api.github.com/users/Strilanc/followers","following_url":"https://api.github.com/users/Strilanc/following{/other_user}","gists_url":"https://api.github.com/users/Strilanc/gists{/gist_id}","starred_url":"https://api.github.com/users/Strilanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strilanc/subscriptions","organizations_url":"https://api.github.com/users/Strilanc/orgs","repos_url":"https://api.github.com/users/Strilanc/repos","events_url":"https://api.github.com/users/Strilanc/events{/privacy}","received_events_url":"https://api.github.com/users/Strilanc/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":922112536,"node_id":"MDU6TGFiZWw5MjIxMTI1MzY=","url":"https://api.github.com/repos/quantumlib/Cirq/labels/cla:%20yes","name":"cla: yes","color":"FFFFFF","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/quantumlib/Cirq/pulls/987/commits","review_comments_url":"https://api.github.com/repos/quantumlib/Cirq/pulls/987/comments","review_comment_url":"https://api.github.com/repos/quantumlib/Cirq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quantumlib/Cirq/issues/987/comments","statuses_url":"https://api.github.com/repos/quantumlib/Cirq/statuses/6a73b1711df144c9b3797aeb53142d9c4be0b250","head":{"label":"dstrain115:magic_method1","ref":"magic_method1","sha":"6a73b1711df144c9b3797aeb53142d9c4be0b250","user":{"login":"dstrain115","id":22484728,"node_id":"MDQ6VXNlcjIyNDg0NzI4","avatar_url":"https://avatars2.githubusercontent.com/u/22484728?v=4","gravatar_id":"","url":"https://api.github.com/users/dstrain115","html_url":"https://github.com/dstrain115","followers_url":"https://api.github.com/users/dstrain115/followers","following_url":"https://api.github.com/users/dstrain115/following{/other_user}","gists_url":"https://api.github.com/users/dstrain115/gists{/gist_id}","starred_url":"https://api.github.com/users/dstrain115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstrain115/subscriptions","organizations_url":"https://api.github.com/users/dstrain115/orgs","repos_url":"https://api.github.com/users/dstrain115/repos","events_url":"https://api.github.com/users/dstrain115/events{/privacy}","received_events_url":"https://api.github.com/users/dstrain115/received_events","type":"User","site_admin":false},"repo":{"id":141657127,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NTcxMjc=","name":"Cirq-1","full_name":"dstrain115/Cirq-1","private":false,"owner":{"login":"dstrain115","id":22484728,"node_id":"MDQ6VXNlcjIyNDg0NzI4","avatar_url":"https://avatars2.githubusercontent.com/u/22484728?v=4","gravatar_id":"","url":"https://api.github.com/users/dstrain115","html_url":"https://github.com/dstrain115","followers_url":"https://api.github.com/users/dstrain115/followers","following_url":"https://api.github.com/users/dstrain115/following{/other_user}","gists_url":"https://api.github.com/users/dstrain115/gists{/gist_id}","starred_url":"https://api.github.com/users/dstrain115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstrain115/subscriptions","organizations_url":"https://api.github.com/users/dstrain115/orgs","repos_url":"https://api.github.com/users/dstrain115/repos","events_url":"https://api.github.com/users/dstrain115/events{/privacy}","received_events_url":"https://api.github.com/users/dstrain115/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dstrain115/Cirq-1","description":"A python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.","fork":true,"url":"https://api.github.com/repos/dstrain115/Cirq-1","forks_url":"https://api.github.com/repos/dstrain115/Cirq-1/forks","keys_url":"https://api.github.com/repos/dstrain115/Cirq-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dstrain115/Cirq-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dstrain115/Cirq-1/teams","hooks_url":"https://api.github.com/repos/dstrain115/Cirq-1/hooks","issue_events_url":"https://api.github.com/repos/dstrain115/Cirq-1/issues/events{/number}","events_url":"https://api.github.com/repos/dstrain115/Cirq-1/events","assignees_url":"https://api.github.com/repos/dstrain115/Cirq-1/assignees{/user}","branches_url":"https://api.github.com/repos/dstrain115/Cirq-1/branches{/branch}","tags_url":"https://api.github.com/repos/dstrain115/Cirq-1/tags","blobs_url":"https://api.github.com/repos/dstrain115/Cirq-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dstrain115/Cirq-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dstrain115/Cirq-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/dstrain115/Cirq-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dstrain115/Cirq-1/statuses/{sha}","languages_url":"https://api.github.com/repos/dstrain115/Cirq-1/languages","stargazers_url":"https://api.github.com/repos/dstrain115/Cirq-1/stargazers","contributors_url":"https://api.github.com/repos/dstrain115/Cirq-1/contributors","subscribers_url":"https://api.github.com/repos/dstrain115/Cirq-1/subscribers","subscription_url":"https://api.github.com/repos/dstrain115/Cirq-1/subscription","commits_url":"https://api.github.com/repos/dstrain115/Cirq-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/dstrain115/Cirq-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/dstrain115/Cirq-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/dstrain115/Cirq-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/dstrain115/Cirq-1/contents/{+path}","compare_url":"https://api.github.com/repos/dstrain115/Cirq-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dstrain115/Cirq-1/merges","archive_url":"https://api.github.com/repos/dstrain115/Cirq-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dstrain115/Cirq-1/downloads","issues_url":"https://api.github.com/repos/dstrain115/Cirq-1/issues{/number}","pulls_url":"https://api.github.com/repos/dstrain115/Cirq-1/pulls{/number}","milestones_url":"https://api.github.com/repos/dstrain115/Cirq-1/milestones{/number}","notifications_url":"https://api.github.com/repos/dstrain115/Cirq-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dstrain115/Cirq-1/labels{/name}","releases_url":"https://api.github.com/repos/dstrain115/Cirq-1/releases{/id}","deployments_url":"https://api.github.com/repos/dstrain115/Cirq-1/deployments","created_at":"2018-07-20T03:07:59Z","updated_at":"2018-09-17T21:07:07Z","pushed_at":"2018-10-05T23:34:10Z","git_url":"git://github.com/dstrain115/Cirq-1.git","ssh_url":"git@github.com:dstrain115/Cirq-1.git","clone_url":"https://github.com/dstrain115/Cirq-1.git","svn_url":"https://github.com/dstrain115/Cirq-1","homepage":"","size":1965,"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":"quantumlib:master","ref":"master","sha":"9acd80be41ecf6bf40ff6a1696c4241e4c532c3b","user":{"login":"quantumlib","id":31279789,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjc5Nzg5","avatar_url":"https://avatars1.githubusercontent.com/u/31279789?v=4","gravatar_id":"","url":"https://api.github.com/users/quantumlib","html_url":"https://github.com/quantumlib","followers_url":"https://api.github.com/users/quantumlib/followers","following_url":"https://api.github.com/users/quantumlib/following{/other_user}","gists_url":"https://api.github.com/users/quantumlib/gists{/gist_id}","starred_url":"https://api.github.com/users/quantumlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantumlib/subscriptions","organizations_url":"https://api.github.com/users/quantumlib/orgs","repos_url":"https://api.github.com/users/quantumlib/repos","events_url":"https://api.github.com/users/quantumlib/events{/privacy}","received_events_url":"https://api.github.com/users/quantumlib/received_events","type":"Organization","site_admin":false},"repo":{"id":114306758,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQzMDY3NTg=","name":"Cirq","full_name":"quantumlib/Cirq","private":false,"owner":{"login":"quantumlib","id":31279789,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjc5Nzg5","avatar_url":"https://avatars1.githubusercontent.com/u/31279789?v=4","gravatar_id":"","url":"https://api.github.com/users/quantumlib","html_url":"https://github.com/quantumlib","followers_url":"https://api.github.com/users/quantumlib/followers","following_url":"https://api.github.com/users/quantumlib/following{/other_user}","gists_url":"https://api.github.com/users/quantumlib/gists{/gist_id}","starred_url":"https://api.github.com/users/quantumlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantumlib/subscriptions","organizations_url":"https://api.github.com/users/quantumlib/orgs","repos_url":"https://api.github.com/users/quantumlib/repos","events_url":"https://api.github.com/users/quantumlib/events{/privacy}","received_events_url":"https://api.github.com/users/quantumlib/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/quantumlib/Cirq","description":"A python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.","fork":false,"url":"https://api.github.com/repos/quantumlib/Cirq","forks_url":"https://api.github.com/repos/quantumlib/Cirq/forks","keys_url":"https://api.github.com/repos/quantumlib/Cirq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quantumlib/Cirq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quantumlib/Cirq/teams","hooks_url":"https://api.github.com/repos/quantumlib/Cirq/hooks","issue_events_url":"https://api.github.com/repos/quantumlib/Cirq/issues/events{/number}","events_url":"https://api.github.com/repos/quantumlib/Cirq/events","assignees_url":"https://api.github.com/repos/quantumlib/Cirq/assignees{/user}","branches_url":"https://api.github.com/repos/quantumlib/Cirq/branches{/branch}","tags_url":"https://api.github.com/repos/quantumlib/Cirq/tags","blobs_url":"https://api.github.com/repos/quantumlib/Cirq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quantumlib/Cirq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quantumlib/Cirq/git/refs{/sha}","trees_url":"https://api.github.com/repos/quantumlib/Cirq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quantumlib/Cirq/statuses/{sha}","languages_url":"https://api.github.com/repos/quantumlib/Cirq/languages","stargazers_url":"https://api.github.com/repos/quantumlib/Cirq/stargazers","contributors_url":"https://api.github.com/repos/quantumlib/Cirq/contributors","subscribers_url":"https://api.github.com/repos/quantumlib/Cirq/subscribers","subscription_url":"https://api.github.com/repos/quantumlib/Cirq/subscription","commits_url":"https://api.github.com/repos/quantumlib/Cirq/commits{/sha}","git_commits_url":"https://api.github.com/repos/quantumlib/Cirq/git/commits{/sha}","comments_url":"https://api.github.com/repos/quantumlib/Cirq/comments{/number}","issue_comment_url":"https://api.github.com/repos/quantumlib/Cirq/issues/comments{/number}","contents_url":"https://api.github.com/repos/quantumlib/Cirq/contents/{+path}","compare_url":"https://api.github.com/repos/quantumlib/Cirq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quantumlib/Cirq/merges","archive_url":"https://api.github.com/repos/quantumlib/Cirq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quantumlib/Cirq/downloads","issues_url":"https://api.github.com/repos/quantumlib/Cirq/issues{/number}","pulls_url":"https://api.github.com/repos/quantumlib/Cirq/pulls{/number}","milestones_url":"https://api.github.com/repos/quantumlib/Cirq/milestones{/number}","notifications_url":"https://api.github.com/repos/quantumlib/Cirq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quantumlib/Cirq/labels{/name}","releases_url":"https://api.github.com/repos/quantumlib/Cirq/releases{/id}","deployments_url":"https://api.github.com/repos/quantumlib/Cirq/deployments","created_at":"2017-12-14T23:41:49Z","updated_at":"2018-10-05T17:37:05Z","pushed_at":"2018-10-05T23:34:12Z","git_url":"git://github.com/quantumlib/Cirq.git","ssh_url":"git@github.com:quantumlib/Cirq.git","clone_url":"https://github.com/quantumlib/Cirq.git","svn_url":"https://github.com/quantumlib/Cirq","homepage":"","size":2284,"stargazers_count":1134,"watchers_count":1134,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":140,"mirror_url":null,"archived":false,"open_issues_count":169,"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":140,"open_issues":169,"watchers":1134,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quantumlib/Cirq/pulls/987"},"html":{"href":"https://github.com/quantumlib/Cirq/pull/987"},"issue":{"href":"https://api.github.com/repos/quantumlib/Cirq/issues/987"},"comments":{"href":"https://api.github.com/repos/quantumlib/Cirq/issues/987/comments"},"review_comments":{"href":"https://api.github.com/repos/quantumlib/Cirq/pulls/987/comments"},"review_comment":{"href":"https://api.github.com/repos/quantumlib/Cirq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quantumlib/Cirq/pulls/987/commits"},"statuses":{"href":"https://api.github.com/repos/quantumlib/Cirq/statuses/6a73b1711df144c9b3797aeb53142d9c4be0b250"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"dstrain115"}}