{"action":"created","comment":{"url":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/comments/176316602","pull_request_review_id":105996263,"id":176316602,"diff_hunk":"@@ -32,6 +32,27 @@ class OperatorUtilsError(Exception):\n     pass\n \n \n+def weight(symbolic_operator):","path":"src/openfermion/utils/_operator_utils.py","position":4,"original_position":4,"commit_id":"3000481c34f2cbe050d3cea5913f34074ac59b13","original_commit_id":"3000481c34f2cbe050d3cea5913f34074ac59b13","user":{"login":"babbush","id":14242687,"avatar_url":"https://avatars2.githubusercontent.com/u/14242687?v=4","gravatar_id":"","url":"https://api.github.com/users/babbush","html_url":"https://github.com/babbush","followers_url":"https://api.github.com/users/babbush/followers","following_url":"https://api.github.com/users/babbush/following{/other_user}","gists_url":"https://api.github.com/users/babbush/gists{/gist_id}","starred_url":"https://api.github.com/users/babbush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babbush/subscriptions","organizations_url":"https://api.github.com/users/babbush/orgs","repos_url":"https://api.github.com/users/babbush/repos","events_url":"https://api.github.com/users/babbush/events{/privacy}","received_events_url":"https://api.github.com/users/babbush/received_events","type":"User","site_admin":false},"body":"I am inclined to think so.","created_at":"2018-03-22T06:11:07Z","updated_at":"2018-03-22T06:11:08Z","html_url":"https://github.com/quantumlib/OpenFermion/pull/275#discussion_r176316602","pull_request_url":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/275","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/comments/176316602"},"html":{"href":"https://github.com/quantumlib/OpenFermion/pull/275#discussion_r176316602"},"pull_request":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/275"}},"in_reply_to_id":176315486},"pull_request":{"url":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/275","id":176682802,"html_url":"https://github.com/quantumlib/OpenFermion/pull/275","diff_url":"https://github.com/quantumlib/OpenFermion/pull/275.diff","patch_url":"https://github.com/quantumlib/OpenFermion/pull/275.patch","issue_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/275","number":275,"state":"open","locked":false,"title":"Add function to compute weight of SymbolicOperator","user":{"login":"kevinsung","id":4296166,"avatar_url":"https://avatars1.githubusercontent.com/u/4296166?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsung","html_url":"https://github.com/kevinsung","followers_url":"https://api.github.com/users/kevinsung/followers","following_url":"https://api.github.com/users/kevinsung/following{/other_user}","gists_url":"https://api.github.com/users/kevinsung/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsung/subscriptions","organizations_url":"https://api.github.com/users/kevinsung/orgs","repos_url":"https://api.github.com/users/kevinsung/repos","events_url":"https://api.github.com/users/kevinsung/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsung/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-22T05:59:29Z","updated_at":"2018-03-22T06:11:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcc01ed032622a86ef2279de573597339da01ad1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/275/commits","review_comments_url":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/275/comments","review_comment_url":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/275/comments","statuses_url":"https://api.github.com/repos/quantumlib/OpenFermion/statuses/3000481c34f2cbe050d3cea5913f34074ac59b13","head":{"label":"kevinsung:weight","ref":"weight","sha":"3000481c34f2cbe050d3cea5913f34074ac59b13","user":{"login":"kevinsung","id":4296166,"avatar_url":"https://avatars1.githubusercontent.com/u/4296166?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsung","html_url":"https://github.com/kevinsung","followers_url":"https://api.github.com/users/kevinsung/followers","following_url":"https://api.github.com/users/kevinsung/following{/other_user}","gists_url":"https://api.github.com/users/kevinsung/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsung/subscriptions","organizations_url":"https://api.github.com/users/kevinsung/orgs","repos_url":"https://api.github.com/users/kevinsung/repos","events_url":"https://api.github.com/users/kevinsung/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsung/received_events","type":"User","site_admin":false},"repo":{"id":114693363,"name":"OpenFermion","full_name":"kevinsung/OpenFermion","owner":{"login":"kevinsung","id":4296166,"avatar_url":"https://avatars1.githubusercontent.com/u/4296166?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsung","html_url":"https://github.com/kevinsung","followers_url":"https://api.github.com/users/kevinsung/followers","following_url":"https://api.github.com/users/kevinsung/following{/other_user}","gists_url":"https://api.github.com/users/kevinsung/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsung/subscriptions","organizations_url":"https://api.github.com/users/kevinsung/orgs","repos_url":"https://api.github.com/users/kevinsung/repos","events_url":"https://api.github.com/users/kevinsung/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevinsung/OpenFermion","description":"OpenFermion: The Electronic Structure Package For Quantum Computers.","fork":true,"url":"https://api.github.com/repos/kevinsung/OpenFermion","forks_url":"https://api.github.com/repos/kevinsung/OpenFermion/forks","keys_url":"https://api.github.com/repos/kevinsung/OpenFermion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevinsung/OpenFermion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevinsung/OpenFermion/teams","hooks_url":"https://api.github.com/repos/kevinsung/OpenFermion/hooks","issue_events_url":"https://api.github.com/repos/kevinsung/OpenFermion/issues/events{/number}","events_url":"https://api.github.com/repos/kevinsung/OpenFermion/events","assignees_url":"https://api.github.com/repos/kevinsung/OpenFermion/assignees{/user}","branches_url":"https://api.github.com/repos/kevinsung/OpenFermion/branches{/branch}","tags_url":"https://api.github.com/repos/kevinsung/OpenFermion/tags","blobs_url":"https://api.github.com/repos/kevinsung/OpenFermion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevinsung/OpenFermion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevinsung/OpenFermion/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevinsung/OpenFermion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevinsung/OpenFermion/statuses/{sha}","languages_url":"https://api.github.com/repos/kevinsung/OpenFermion/languages","stargazers_url":"https://api.github.com/repos/kevinsung/OpenFermion/stargazers","contributors_url":"https://api.github.com/repos/kevinsung/OpenFermion/contributors","subscribers_url":"https://api.github.com/repos/kevinsung/OpenFermion/subscribers","subscription_url":"https://api.github.com/repos/kevinsung/OpenFermion/subscription","commits_url":"https://api.github.com/repos/kevinsung/OpenFermion/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevinsung/OpenFermion/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevinsung/OpenFermion/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevinsung/OpenFermion/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevinsung/OpenFermion/contents/{+path}","compare_url":"https://api.github.com/repos/kevinsung/OpenFermion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevinsung/OpenFermion/merges","archive_url":"https://api.github.com/repos/kevinsung/OpenFermion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevinsung/OpenFermion/downloads","issues_url":"https://api.github.com/repos/kevinsung/OpenFermion/issues{/number}","pulls_url":"https://api.github.com/repos/kevinsung/OpenFermion/pulls{/number}","milestones_url":"https://api.github.com/repos/kevinsung/OpenFermion/milestones{/number}","notifications_url":"https://api.github.com/repos/kevinsung/OpenFermion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevinsung/OpenFermion/labels{/name}","releases_url":"https://api.github.com/repos/kevinsung/OpenFermion/releases{/id}","deployments_url":"https://api.github.com/repos/kevinsung/OpenFermion/deployments","created_at":"2017-12-18T22:19:46Z","updated_at":"2018-03-22T04:46:39Z","pushed_at":"2018-03-22T05:33:10Z","git_url":"git://github.com/kevinsung/OpenFermion.git","ssh_url":"git@github.com:kevinsung/OpenFermion.git","clone_url":"https://github.com/kevinsung/OpenFermion.git","svn_url":"https://github.com/kevinsung/OpenFermion","homepage":"","size":3066,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"quantumlib:master","ref":"master","sha":"3fcb662e0f4013c9144dc16049870acf01d8507b","user":{"login":"quantumlib","id":31279789,"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":104403768,"name":"OpenFermion","full_name":"quantumlib/OpenFermion","owner":{"login":"quantumlib","id":31279789,"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},"private":false,"html_url":"https://github.com/quantumlib/OpenFermion","description":"OpenFermion: The Electronic Structure Package For Quantum Computers.","fork":false,"url":"https://api.github.com/repos/quantumlib/OpenFermion","forks_url":"https://api.github.com/repos/quantumlib/OpenFermion/forks","keys_url":"https://api.github.com/repos/quantumlib/OpenFermion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quantumlib/OpenFermion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quantumlib/OpenFermion/teams","hooks_url":"https://api.github.com/repos/quantumlib/OpenFermion/hooks","issue_events_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/events{/number}","events_url":"https://api.github.com/repos/quantumlib/OpenFermion/events","assignees_url":"https://api.github.com/repos/quantumlib/OpenFermion/assignees{/user}","branches_url":"https://api.github.com/repos/quantumlib/OpenFermion/branches{/branch}","tags_url":"https://api.github.com/repos/quantumlib/OpenFermion/tags","blobs_url":"https://api.github.com/repos/quantumlib/OpenFermion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quantumlib/OpenFermion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quantumlib/OpenFermion/git/refs{/sha}","trees_url":"https://api.github.com/repos/quantumlib/OpenFermion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quantumlib/OpenFermion/statuses/{sha}","languages_url":"https://api.github.com/repos/quantumlib/OpenFermion/languages","stargazers_url":"https://api.github.com/repos/quantumlib/OpenFermion/stargazers","contributors_url":"https://api.github.com/repos/quantumlib/OpenFermion/contributors","subscribers_url":"https://api.github.com/repos/quantumlib/OpenFermion/subscribers","subscription_url":"https://api.github.com/repos/quantumlib/OpenFermion/subscription","commits_url":"https://api.github.com/repos/quantumlib/OpenFermion/commits{/sha}","git_commits_url":"https://api.github.com/repos/quantumlib/OpenFermion/git/commits{/sha}","comments_url":"https://api.github.com/repos/quantumlib/OpenFermion/comments{/number}","issue_comment_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/comments{/number}","contents_url":"https://api.github.com/repos/quantumlib/OpenFermion/contents/{+path}","compare_url":"https://api.github.com/repos/quantumlib/OpenFermion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quantumlib/OpenFermion/merges","archive_url":"https://api.github.com/repos/quantumlib/OpenFermion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quantumlib/OpenFermion/downloads","issues_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues{/number}","pulls_url":"https://api.github.com/repos/quantumlib/OpenFermion/pulls{/number}","milestones_url":"https://api.github.com/repos/quantumlib/OpenFermion/milestones{/number}","notifications_url":"https://api.github.com/repos/quantumlib/OpenFermion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quantumlib/OpenFermion/labels{/name}","releases_url":"https://api.github.com/repos/quantumlib/OpenFermion/releases{/id}","deployments_url":"https://api.github.com/repos/quantumlib/OpenFermion/deployments","created_at":"2017-09-21T22:10:28Z","updated_at":"2018-03-22T03:31:34Z","pushed_at":"2018-03-22T05:59:30Z","git_url":"git://github.com/quantumlib/OpenFermion.git","ssh_url":"git@github.com:quantumlib/OpenFermion.git","clone_url":"https://github.com/quantumlib/OpenFermion.git","svn_url":"https://github.com/quantumlib/OpenFermion","homepage":"","size":3002,"stargazers_count":429,"watchers_count":429,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":99,"mirror_url":null,"archived":false,"open_issues_count":28,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":99,"open_issues":28,"watchers":429,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/275"},"html":{"href":"https://github.com/quantumlib/OpenFermion/pull/275"},"issue":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/issues/275"},"comments":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/issues/275/comments"},"review_comments":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/275/comments"},"review_comment":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/pulls/275/commits"},"statuses":{"href":"https://api.github.com/repos/quantumlib/OpenFermion/statuses/3000481c34f2cbe050d3cea5913f34074ac59b13"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"babbush"}}