{"action":"created","issue":{"url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/177","repository_url":"https://api.github.com/repos/quantumlib/OpenFermion","labels_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/177/comments","events_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/177/events","html_url":"https://github.com/quantumlib/OpenFermion/issues/177","id":289818589,"number":177,"title":"Expand string initializations","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},"labels":[{"id":699437066,"url":"https://api.github.com/repos/quantumlib/OpenFermion/labels/good%20first%20issue","name":"good first issue","color":"0e8a16","default":true},{"id":699437065,"url":"https://api.github.com/repos/quantumlib/OpenFermion/labels/help%20wanted","name":"help wanted","color":"0e8a16","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-01-19T00:00:23Z","updated_at":"2018-02-27T17:50:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"As discussed in https://github.com/quantumlib/OpenFermion/issues/122 it would be helpful if sums of FermionOperators and QubitOperators could be initialized from their string representation so that\r\nmy_fermion_operator - FermionOperator(str(my_fermion_operator)) = 0 and\r\nmy_qubit_operator - QubitOperator(str(qubit_operator)) = 0.\r\nThis should be easy for a beginner to implement."},"comment":{"url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/comments/368966063","html_url":"https://github.com/quantumlib/OpenFermion/issues/177#issuecomment-368966063","issue_url":"https://api.github.com/repos/quantumlib/OpenFermion/issues/177","id":368966063,"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},"created_at":"2018-02-27T17:50:43Z","updated_at":"2018-02-27T17:50:43Z","author_association":"CONTRIBUTOR","body":"Also, I am not sure how one is supposed to provide complex coefficients.\r\n`my_operator = FermionOperator('(2.3 + 1.7j) [3^ 2]')`\r\nthrows an error."}}
{"actor":{"display_login":"babbush"}}