{"action":"created","comment":{"url":"https://api.github.com/repos/netket/netket/pulls/comments/201508392","pull_request_review_id":136024799,"id":201508392,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTUwODM5Mg==","diff_hunk":"@@ -41,6 +42,8 @@ class Hamiltonian : public AbstractHamiltonian {\n         h_ = std::make_shared<Heisenberg<Graph>>(graph, pars);\n       } else if (pars[\"Hamiltonian\"][\"Name\"] == \"BoseHubbard\") {\n         h_ = std::make_shared<BoseHubbard<Graph>>(graph, pars);\n+      } else if (pars[\"Hamiltonian\"][\"Name\"] == \"Graph\") {\n+        h_ = std::make_shared<GraphHamiltonian<Graph>>(graph, pars);","path":"NetKet/Hamiltonian/hamiltonian.hpp","position":13,"original_position":13,"commit_id":"e3351098d497b519bbc4d7ba839b1f55a9475d08","original_commit_id":"0d3e7a9daa009be655fd2b1b5c846762dad7cddd","user":{"login":"gcarleo","id":28149892,"node_id":"MDQ6VXNlcjI4MTQ5ODky","avatar_url":"https://avatars0.githubusercontent.com/u/28149892?v=4","gravatar_id":"","url":"https://api.github.com/users/gcarleo","html_url":"https://github.com/gcarleo","followers_url":"https://api.github.com/users/gcarleo/followers","following_url":"https://api.github.com/users/gcarleo/following{/other_user}","gists_url":"https://api.github.com/users/gcarleo/gists{/gist_id}","starred_url":"https://api.github.com/users/gcarleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcarleo/subscriptions","organizations_url":"https://api.github.com/users/gcarleo/orgs","repos_url":"https://api.github.com/users/gcarleo/repos","events_url":"https://api.github.com/users/gcarleo/events{/privacy}","received_events_url":"https://api.github.com/users/gcarleo/received_events","type":"User","site_admin":false},"body":"We are working on this in another PR, do not worry about this here ","created_at":"2018-07-10T21:55:47Z","updated_at":"2018-07-10T21:59:05Z","html_url":"https://github.com/netket/netket/pull/39#discussion_r201508392","pull_request_url":"https://api.github.com/repos/netket/netket/pulls/39","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/netket/netket/pulls/comments/201508392"},"html":{"href":"https://github.com/netket/netket/pull/39#discussion_r201508392"},"pull_request":{"href":"https://api.github.com/repos/netket/netket/pulls/39"}},"in_reply_to_id":200202647},"pull_request":{"url":"https://api.github.com/repos/netket/netket/pulls/39","id":198825098,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4ODI1MDk4","html_url":"https://github.com/netket/netket/pull/39","diff_url":"https://github.com/netket/netket/pull/39.diff","patch_url":"https://github.com/netket/netket/pull/39.patch","issue_url":"https://api.github.com/repos/netket/netket/issues/39","number":39,"state":"open","locked":false,"title":"Adding GraphHamiltonians.","user":{"login":"jamesETsmith","id":11277676,"node_id":"MDQ6VXNlcjExMjc3Njc2","avatar_url":"https://avatars0.githubusercontent.com/u/11277676?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesETsmith","html_url":"https://github.com/jamesETsmith","followers_url":"https://api.github.com/users/jamesETsmith/followers","following_url":"https://api.github.com/users/jamesETsmith/following{/other_user}","gists_url":"https://api.github.com/users/jamesETsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesETsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesETsmith/subscriptions","organizations_url":"https://api.github.com/users/jamesETsmith/orgs","repos_url":"https://api.github.com/users/jamesETsmith/repos","events_url":"https://api.github.com/users/jamesETsmith/events{/privacy}","received_events_url":"https://api.github.com/users/jamesETsmith/received_events","type":"User","site_admin":false},"body":"- Added EdgeColors to custom graphs that allow users to specify colors of the edges.\r\n\r\n- Added a new class of Hamiltonians called GraphHamiltonians that allow users to specify operators that only act on edges of a certain color. Users can also specify site operators that act on the vertices of the graph.\r\n\r\n- Created tutorials for the transverse field Ising and J1 J2 models using graph hamiltonians.\r\n\r\n- Added unittest for graph Hamiltonian.","created_at":"2018-07-03T01:06:39Z","updated_at":"2018-07-10T21:59:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"791506dd695fbc309683f49a9892d11e38e7b908","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/netket/netket/pulls/39/commits","review_comments_url":"https://api.github.com/repos/netket/netket/pulls/39/comments","review_comment_url":"https://api.github.com/repos/netket/netket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netket/netket/issues/39/comments","statuses_url":"https://api.github.com/repos/netket/netket/statuses/e3351098d497b519bbc4d7ba839b1f55a9475d08","head":{"label":"jamesETsmith:master","ref":"master","sha":"e3351098d497b519bbc4d7ba839b1f55a9475d08","user":{"login":"jamesETsmith","id":11277676,"node_id":"MDQ6VXNlcjExMjc3Njc2","avatar_url":"https://avatars0.githubusercontent.com/u/11277676?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesETsmith","html_url":"https://github.com/jamesETsmith","followers_url":"https://api.github.com/users/jamesETsmith/followers","following_url":"https://api.github.com/users/jamesETsmith/following{/other_user}","gists_url":"https://api.github.com/users/jamesETsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesETsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesETsmith/subscriptions","organizations_url":"https://api.github.com/users/jamesETsmith/orgs","repos_url":"https://api.github.com/users/jamesETsmith/repos","events_url":"https://api.github.com/users/jamesETsmith/events{/privacy}","received_events_url":"https://api.github.com/users/jamesETsmith/received_events","type":"User","site_admin":false},"repo":{"id":137273928,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcyNzM5Mjg=","name":"netket","full_name":"jamesETsmith/netket","owner":{"login":"jamesETsmith","id":11277676,"node_id":"MDQ6VXNlcjExMjc3Njc2","avatar_url":"https://avatars0.githubusercontent.com/u/11277676?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesETsmith","html_url":"https://github.com/jamesETsmith","followers_url":"https://api.github.com/users/jamesETsmith/followers","following_url":"https://api.github.com/users/jamesETsmith/following{/other_user}","gists_url":"https://api.github.com/users/jamesETsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesETsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesETsmith/subscriptions","organizations_url":"https://api.github.com/users/jamesETsmith/orgs","repos_url":"https://api.github.com/users/jamesETsmith/repos","events_url":"https://api.github.com/users/jamesETsmith/events{/privacy}","received_events_url":"https://api.github.com/users/jamesETsmith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamesETsmith/netket","description":"Machine learning algorithms for many-body quantum systems ","fork":true,"url":"https://api.github.com/repos/jamesETsmith/netket","forks_url":"https://api.github.com/repos/jamesETsmith/netket/forks","keys_url":"https://api.github.com/repos/jamesETsmith/netket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamesETsmith/netket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamesETsmith/netket/teams","hooks_url":"https://api.github.com/repos/jamesETsmith/netket/hooks","issue_events_url":"https://api.github.com/repos/jamesETsmith/netket/issues/events{/number}","events_url":"https://api.github.com/repos/jamesETsmith/netket/events","assignees_url":"https://api.github.com/repos/jamesETsmith/netket/assignees{/user}","branches_url":"https://api.github.com/repos/jamesETsmith/netket/branches{/branch}","tags_url":"https://api.github.com/repos/jamesETsmith/netket/tags","blobs_url":"https://api.github.com/repos/jamesETsmith/netket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamesETsmith/netket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamesETsmith/netket/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamesETsmith/netket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamesETsmith/netket/statuses/{sha}","languages_url":"https://api.github.com/repos/jamesETsmith/netket/languages","stargazers_url":"https://api.github.com/repos/jamesETsmith/netket/stargazers","contributors_url":"https://api.github.com/repos/jamesETsmith/netket/contributors","subscribers_url":"https://api.github.com/repos/jamesETsmith/netket/subscribers","subscription_url":"https://api.github.com/repos/jamesETsmith/netket/subscription","commits_url":"https://api.github.com/repos/jamesETsmith/netket/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamesETsmith/netket/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamesETsmith/netket/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamesETsmith/netket/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamesETsmith/netket/contents/{+path}","compare_url":"https://api.github.com/repos/jamesETsmith/netket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamesETsmith/netket/merges","archive_url":"https://api.github.com/repos/jamesETsmith/netket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamesETsmith/netket/downloads","issues_url":"https://api.github.com/repos/jamesETsmith/netket/issues{/number}","pulls_url":"https://api.github.com/repos/jamesETsmith/netket/pulls{/number}","milestones_url":"https://api.github.com/repos/jamesETsmith/netket/milestones{/number}","notifications_url":"https://api.github.com/repos/jamesETsmith/netket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamesETsmith/netket/labels{/name}","releases_url":"https://api.github.com/repos/jamesETsmith/netket/releases{/id}","deployments_url":"https://api.github.com/repos/jamesETsmith/netket/deployments","created_at":"2018-06-13T21:36:59Z","updated_at":"2018-07-09T22:04:29Z","pushed_at":"2018-07-09T22:04:26Z","git_url":"git://github.com/jamesETsmith/netket.git","ssh_url":"git@github.com:jamesETsmith/netket.git","clone_url":"https://github.com/jamesETsmith/netket.git","svn_url":"https://github.com/jamesETsmith/netket","homepage":"https://www.netket.org","size":2079,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"netket:master","ref":"master","sha":"2aa9c6f99eeeb843c05b5d83fc5cb5bacdcb1c09","user":{"login":"netket","id":38641916,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NjQxOTE2","avatar_url":"https://avatars2.githubusercontent.com/u/38641916?v=4","gravatar_id":"","url":"https://api.github.com/users/netket","html_url":"https://github.com/netket","followers_url":"https://api.github.com/users/netket/followers","following_url":"https://api.github.com/users/netket/following{/other_user}","gists_url":"https://api.github.com/users/netket/gists{/gist_id}","starred_url":"https://api.github.com/users/netket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netket/subscriptions","organizations_url":"https://api.github.com/users/netket/orgs","repos_url":"https://api.github.com/users/netket/repos","events_url":"https://api.github.com/users/netket/events{/privacy}","received_events_url":"https://api.github.com/users/netket/received_events","type":"Organization","site_admin":false},"repo":{"id":130741783,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA3NDE3ODM=","name":"netket","full_name":"netket/netket","owner":{"login":"netket","id":38641916,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NjQxOTE2","avatar_url":"https://avatars2.githubusercontent.com/u/38641916?v=4","gravatar_id":"","url":"https://api.github.com/users/netket","html_url":"https://github.com/netket","followers_url":"https://api.github.com/users/netket/followers","following_url":"https://api.github.com/users/netket/following{/other_user}","gists_url":"https://api.github.com/users/netket/gists{/gist_id}","starred_url":"https://api.github.com/users/netket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netket/subscriptions","organizations_url":"https://api.github.com/users/netket/orgs","repos_url":"https://api.github.com/users/netket/repos","events_url":"https://api.github.com/users/netket/events{/privacy}","received_events_url":"https://api.github.com/users/netket/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netket/netket","description":"Machine learning algorithms for many-body quantum systems ","fork":false,"url":"https://api.github.com/repos/netket/netket","forks_url":"https://api.github.com/repos/netket/netket/forks","keys_url":"https://api.github.com/repos/netket/netket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netket/netket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netket/netket/teams","hooks_url":"https://api.github.com/repos/netket/netket/hooks","issue_events_url":"https://api.github.com/repos/netket/netket/issues/events{/number}","events_url":"https://api.github.com/repos/netket/netket/events","assignees_url":"https://api.github.com/repos/netket/netket/assignees{/user}","branches_url":"https://api.github.com/repos/netket/netket/branches{/branch}","tags_url":"https://api.github.com/repos/netket/netket/tags","blobs_url":"https://api.github.com/repos/netket/netket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netket/netket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netket/netket/git/refs{/sha}","trees_url":"https://api.github.com/repos/netket/netket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netket/netket/statuses/{sha}","languages_url":"https://api.github.com/repos/netket/netket/languages","stargazers_url":"https://api.github.com/repos/netket/netket/stargazers","contributors_url":"https://api.github.com/repos/netket/netket/contributors","subscribers_url":"https://api.github.com/repos/netket/netket/subscribers","subscription_url":"https://api.github.com/repos/netket/netket/subscription","commits_url":"https://api.github.com/repos/netket/netket/commits{/sha}","git_commits_url":"https://api.github.com/repos/netket/netket/git/commits{/sha}","comments_url":"https://api.github.com/repos/netket/netket/comments{/number}","issue_comment_url":"https://api.github.com/repos/netket/netket/issues/comments{/number}","contents_url":"https://api.github.com/repos/netket/netket/contents/{+path}","compare_url":"https://api.github.com/repos/netket/netket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netket/netket/merges","archive_url":"https://api.github.com/repos/netket/netket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netket/netket/downloads","issues_url":"https://api.github.com/repos/netket/netket/issues{/number}","pulls_url":"https://api.github.com/repos/netket/netket/pulls{/number}","milestones_url":"https://api.github.com/repos/netket/netket/milestones{/number}","notifications_url":"https://api.github.com/repos/netket/netket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netket/netket/labels{/name}","releases_url":"https://api.github.com/repos/netket/netket/releases{/id}","deployments_url":"https://api.github.com/repos/netket/netket/deployments","created_at":"2018-04-23T18:48:08Z","updated_at":"2018-07-10T07:51:37Z","pushed_at":"2018-07-09T22:44:49Z","git_url":"git://github.com/netket/netket.git","ssh_url":"git@github.com:netket/netket.git","clone_url":"https://github.com/netket/netket.git","svn_url":"https://github.com/netket/netket","homepage":"https://www.netket.org","size":25614,"stargazers_count":43,"watchers_count":43,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":12,"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":19,"open_issues":12,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netket/netket/pulls/39"},"html":{"href":"https://github.com/netket/netket/pull/39"},"issue":{"href":"https://api.github.com/repos/netket/netket/issues/39"},"comments":{"href":"https://api.github.com/repos/netket/netket/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/netket/netket/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/netket/netket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netket/netket/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/netket/netket/statuses/e3351098d497b519bbc4d7ba839b1f55a9475d08"}},"author_association":"NONE"}}
{"actor":{"display_login":"gcarleo"}}