{"action":"created","issue":{"url":"https://api.github.com/repos/quantumlib/Cirq/issues/1010","repository_url":"https://api.github.com/repos/quantumlib/Cirq","labels_url":"https://api.github.com/repos/quantumlib/Cirq/issues/1010/labels{/name}","comments_url":"https://api.github.com/repos/quantumlib/Cirq/issues/1010/comments","events_url":"https://api.github.com/repos/quantumlib/Cirq/issues/1010/events","html_url":"https://github.com/quantumlib/Cirq/pull/1010","id":370382159,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMDcyNzg0","number":1010,"title":"Replace PhaseableEffect with a new SupportsPhase 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},"labels":[{"id":922112536,"node_id":"MDU6TGFiZWw5MjIxMTI1MzY=","url":"https://api.github.com/repos/quantumlib/Cirq/labels/cla:%20yes","name":"cla: yes","color":"FFFFFF","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-15T23:28:35Z","updated_at":"2018-10-17T21:34:52Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/quantumlib/Cirq/pulls/1010","html_url":"https://github.com/quantumlib/Cirq/pull/1010","diff_url":"https://github.com/quantumlib/Cirq/pull/1010.diff","patch_url":"https://github.com/quantumlib/Cirq/pull/1010.patch"},"body":"- Add magic method `_phase_by_` to phase a gate or operation\r\n- Add `cirq.protocols.phase_by` to call this magic method or return a\r\ndefault value.\r\n\r\nNote: eject_z logic changed slightly to check if each qubit phase\r\nis allowed rather than checking it at the beginning.  However, this\r\nshould have no practical effect.\r\n\r\nFixes https://github.com/quantumlib/Cirq/issues/947"},"comment":{"url":"https://api.github.com/repos/quantumlib/Cirq/issues/comments/430797909","html_url":"https://github.com/quantumlib/Cirq/pull/1010#issuecomment-430797909","issue_url":"https://api.github.com/repos/quantumlib/Cirq/issues/1010","id":430797909,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDc5NzkwOQ==","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},"created_at":"2018-10-17T21:34:52Z","updated_at":"2018-10-17T21:34:52Z","author_association":"COLLABORATOR","body":"Yes please.  I am not quite sure why Exp11Gate disappeared.\n\nOn Wed, Oct 17, 2018 at 2:28 PM Craig Gidney <notifications@github.com>\nwrote:\n\n> I can handle getting this merged in the middle of the storm of other\n> merges if you'd like.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/quantumlib/Cirq/pull/1010#issuecomment-430795838>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AVcW-P5nfRefwC3WKmV5CfB-VflgOhk0ks5ul6D8gaJpZM4XdUMO>\n> .\n>\n"}}
{"actor":{"display_login":"dstrain115"}}