{"action":"opened","number":1331,"pull_request":{"url":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls/1331","id":233563423,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzNTYzNDIz","html_url":"https://github.com/Qiskit/qiskit-terra/pull/1331","diff_url":"https://github.com/Qiskit/qiskit-terra/pull/1331.diff","patch_url":"https://github.com/Qiskit/qiskit-terra/pull/1331.patch","issue_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/1331","number":1331,"state":"open","locked":false,"title":"Update backend.properties() to use BackendProperties","user":{"login":"diego-plan9","id":418311,"node_id":"MDQ6VXNlcjQxODMxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/418311?v=4","gravatar_id":"","url":"https://api.github.com/users/diego-plan9","html_url":"https://github.com/diego-plan9","followers_url":"https://api.github.com/users/diego-plan9/followers","following_url":"https://api.github.com/users/diego-plan9/following{/other_user}","gists_url":"https://api.github.com/users/diego-plan9/gists{/gist_id}","starred_url":"https://api.github.com/users/diego-plan9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diego-plan9/subscriptions","organizations_url":"https://api.github.com/users/diego-plan9/orgs","repos_url":"https://api.github.com/users/diego-plan9/repos","events_url":"https://api.github.com/users/diego-plan9/events{/privacy}","received_events_url":"https://api.github.com/users/diego-plan9/received_events","type":"User","site_admin":false},"body":"\r\n\r\n<!--\r\n⚠️ If you do not respect this template, your pull request will be closed.\r\n⚠️ Your pull request title should be short detailed and understandable for all.\r\n⚠️ Also, please add it in the CHANGELOG file under Unreleased section.\r\n⚠️ If your pull request fixes an open issue, please link to the issue.\r\n\r\n✅ I have added the tests to cover my changes.\r\n✅ I have updated the documentation accordingly.\r\n✅ I have read the CONTRIBUTING document.\r\n-->\r\nRelated issues:\r\n#996 - backend_properties_schema.json checkbox\r\n\r\n### Summary\r\n\r\nIn a similar spirit to #1301 and #1323, update `backend.properties()` (base, aer, and ibmq) in order to return instances of `BackendProperties` that conform to the schemas instead of dicts.\r\n\r\nFor the local simulators, their properties have been composed trying to achieve minimal working ones, using placeholders - as the specs does not allow empty Properties. In particular, `qubits` and `gates` require at lease one element: they should be set to proper values in a follow-up PR.\r\n\r\nFor `IBMQBackend`, the changes involved moving the parsing and processing of the properties to the IBMQConnector, freeing up the layer above from those modifications. Please note that the processing included is meant to be temporary, and takes into account the format currently returned by the API for all QX and IBMQ current devices and sims. Ideally, the call will be replaced with a call to a new endpoint that needs no preprocessing before the 0.7 release.\r\n\r\nThe `IBMQBackend` simulators (both QX and IBMQ) API calls return an empty dict - in practice it means the `online_simulator.properties()` will return a `ValidationError` until 0.7.\r\n\r\n### Details and comments\r\n\r\nThere are some potential follow-ups for this PR:\r\n\r\n* all properties (for local sims) need to return meaningful `qubits` and `gates` attributes, as currently they return dummy values (as the specs requires at least 1 element in them). Alternatively, we should look if it makes sense to relax the schemas for the simulators.\r\n\r\n","created_at":"2018-11-26T13:47:32Z","updated_at":"2018-11-26T13:47:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/Qiskit/qiskit-terra/milestones/5","html_url":"https://github.com/Qiskit/qiskit-terra/milestone/5","labels_url":"https://api.github.com/repos/Qiskit/qiskit-terra/milestones/5/labels","id":3525568,"node_id":"MDk6TWlsZXN0b25lMzUyNTU2OA==","number":5,"title":"0.7","description":null,"creator":{"login":"atilag","id":1304071,"node_id":"MDQ6VXNlcjEzMDQwNzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1304071?v=4","gravatar_id":"","url":"https://api.github.com/users/atilag","html_url":"https://github.com/atilag","followers_url":"https://api.github.com/users/atilag/followers","following_url":"https://api.github.com/users/atilag/following{/other_user}","gists_url":"https://api.github.com/users/atilag/gists{/gist_id}","starred_url":"https://api.github.com/users/atilag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilag/subscriptions","organizations_url":"https://api.github.com/users/atilag/orgs","repos_url":"https://api.github.com/users/atilag/repos","events_url":"https://api.github.com/users/atilag/events{/privacy}","received_events_url":"https://api.github.com/users/atilag/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":52,"state":"open","created_at":"2018-07-26T15:04:09Z","updated_at":"2018-11-26T13:47:32Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls/1331/commits","review_comments_url":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls/1331/comments","review_comment_url":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/1331/comments","statuses_url":"https://api.github.com/repos/Qiskit/qiskit-terra/statuses/22f16894c0b2671dba2df3ed21ce9bd0ce852fa7","head":{"label":"diego-plan9:feature/backend-properties-method","ref":"feature/backend-properties-method","sha":"22f16894c0b2671dba2df3ed21ce9bd0ce852fa7","user":{"login":"diego-plan9","id":418311,"node_id":"MDQ6VXNlcjQxODMxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/418311?v=4","gravatar_id":"","url":"https://api.github.com/users/diego-plan9","html_url":"https://github.com/diego-plan9","followers_url":"https://api.github.com/users/diego-plan9/followers","following_url":"https://api.github.com/users/diego-plan9/following{/other_user}","gists_url":"https://api.github.com/users/diego-plan9/gists{/gist_id}","starred_url":"https://api.github.com/users/diego-plan9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diego-plan9/subscriptions","organizations_url":"https://api.github.com/users/diego-plan9/orgs","repos_url":"https://api.github.com/users/diego-plan9/repos","events_url":"https://api.github.com/users/diego-plan9/events{/privacy}","received_events_url":"https://api.github.com/users/diego-plan9/received_events","type":"User","site_admin":false},"repo":{"id":102835926,"node_id":"MDEwOlJlcG9zaXRvcnkxMDI4MzU5MjY=","name":"qiskit-sdk-py","full_name":"diego-plan9/qiskit-sdk-py","private":false,"owner":{"login":"diego-plan9","id":418311,"node_id":"MDQ6VXNlcjQxODMxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/418311?v=4","gravatar_id":"","url":"https://api.github.com/users/diego-plan9","html_url":"https://github.com/diego-plan9","followers_url":"https://api.github.com/users/diego-plan9/followers","following_url":"https://api.github.com/users/diego-plan9/following{/other_user}","gists_url":"https://api.github.com/users/diego-plan9/gists{/gist_id}","starred_url":"https://api.github.com/users/diego-plan9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diego-plan9/subscriptions","organizations_url":"https://api.github.com/users/diego-plan9/orgs","repos_url":"https://api.github.com/users/diego-plan9/repos","events_url":"https://api.github.com/users/diego-plan9/events{/privacy}","received_events_url":"https://api.github.com/users/diego-plan9/received_events","type":"User","site_admin":false},"html_url":"https://github.com/diego-plan9/qiskit-sdk-py","description":"Python software development kit for writing quantum computing experiments,  programs, and applications","fork":true,"url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py","forks_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/forks","keys_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/teams","hooks_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/hooks","issue_events_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/issues/events{/number}","events_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/events","assignees_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/assignees{/user}","branches_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/branches{/branch}","tags_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/tags","blobs_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/statuses/{sha}","languages_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/languages","stargazers_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/stargazers","contributors_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/contributors","subscribers_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/subscribers","subscription_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/subscription","commits_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/contents/{+path}","compare_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/merges","archive_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/downloads","issues_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/issues{/number}","pulls_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/pulls{/number}","milestones_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/milestones{/number}","notifications_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/labels{/name}","releases_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/releases{/id}","deployments_url":"https://api.github.com/repos/diego-plan9/qiskit-sdk-py/deployments","created_at":"2017-09-08T08:07:44Z","updated_at":"2018-11-23T13:17:26Z","pushed_at":"2018-11-26T13:41:28Z","git_url":"git://github.com/diego-plan9/qiskit-sdk-py.git","ssh_url":"git@github.com:diego-plan9/qiskit-sdk-py.git","clone_url":"https://github.com/diego-plan9/qiskit-sdk-py.git","svn_url":"https://github.com/diego-plan9/qiskit-sdk-py","homepage":"","size":30358,"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":1,"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":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Qiskit:master","ref":"master","sha":"5a1b38ba9afe6914871c647a9cb3eea65cce97d1","user":{"login":"Qiskit","id":30696987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjk2OTg3","avatar_url":"https://avatars1.githubusercontent.com/u/30696987?v=4","gravatar_id":"","url":"https://api.github.com/users/Qiskit","html_url":"https://github.com/Qiskit","followers_url":"https://api.github.com/users/Qiskit/followers","following_url":"https://api.github.com/users/Qiskit/following{/other_user}","gists_url":"https://api.github.com/users/Qiskit/gists{/gist_id}","starred_url":"https://api.github.com/users/Qiskit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qiskit/subscriptions","organizations_url":"https://api.github.com/users/Qiskit/orgs","repos_url":"https://api.github.com/users/Qiskit/repos","events_url":"https://api.github.com/users/Qiskit/events{/privacy}","received_events_url":"https://api.github.com/users/Qiskit/received_events","type":"Organization","site_admin":false},"repo":{"id":83821669,"node_id":"MDEwOlJlcG9zaXRvcnk4MzgyMTY2OQ==","name":"qiskit-terra","full_name":"Qiskit/qiskit-terra","private":false,"owner":{"login":"Qiskit","id":30696987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjk2OTg3","avatar_url":"https://avatars1.githubusercontent.com/u/30696987?v=4","gravatar_id":"","url":"https://api.github.com/users/Qiskit","html_url":"https://github.com/Qiskit","followers_url":"https://api.github.com/users/Qiskit/followers","following_url":"https://api.github.com/users/Qiskit/following{/other_user}","gists_url":"https://api.github.com/users/Qiskit/gists{/gist_id}","starred_url":"https://api.github.com/users/Qiskit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qiskit/subscriptions","organizations_url":"https://api.github.com/users/Qiskit/orgs","repos_url":"https://api.github.com/users/Qiskit/repos","events_url":"https://api.github.com/users/Qiskit/events{/privacy}","received_events_url":"https://api.github.com/users/Qiskit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Qiskit/qiskit-terra","description":"Terra provides the foundations for Qiskit. It allows the user to write quantum circuits easily, and takes care of the constraints of real hardware.","fork":false,"url":"https://api.github.com/repos/Qiskit/qiskit-terra","forks_url":"https://api.github.com/repos/Qiskit/qiskit-terra/forks","keys_url":"https://api.github.com/repos/Qiskit/qiskit-terra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Qiskit/qiskit-terra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Qiskit/qiskit-terra/teams","hooks_url":"https://api.github.com/repos/Qiskit/qiskit-terra/hooks","issue_events_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/events{/number}","events_url":"https://api.github.com/repos/Qiskit/qiskit-terra/events","assignees_url":"https://api.github.com/repos/Qiskit/qiskit-terra/assignees{/user}","branches_url":"https://api.github.com/repos/Qiskit/qiskit-terra/branches{/branch}","tags_url":"https://api.github.com/repos/Qiskit/qiskit-terra/tags","blobs_url":"https://api.github.com/repos/Qiskit/qiskit-terra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Qiskit/qiskit-terra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Qiskit/qiskit-terra/git/refs{/sha}","trees_url":"https://api.github.com/repos/Qiskit/qiskit-terra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Qiskit/qiskit-terra/statuses/{sha}","languages_url":"https://api.github.com/repos/Qiskit/qiskit-terra/languages","stargazers_url":"https://api.github.com/repos/Qiskit/qiskit-terra/stargazers","contributors_url":"https://api.github.com/repos/Qiskit/qiskit-terra/contributors","subscribers_url":"https://api.github.com/repos/Qiskit/qiskit-terra/subscribers","subscription_url":"https://api.github.com/repos/Qiskit/qiskit-terra/subscription","commits_url":"https://api.github.com/repos/Qiskit/qiskit-terra/commits{/sha}","git_commits_url":"https://api.github.com/repos/Qiskit/qiskit-terra/git/commits{/sha}","comments_url":"https://api.github.com/repos/Qiskit/qiskit-terra/comments{/number}","issue_comment_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/comments{/number}","contents_url":"https://api.github.com/repos/Qiskit/qiskit-terra/contents/{+path}","compare_url":"https://api.github.com/repos/Qiskit/qiskit-terra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Qiskit/qiskit-terra/merges","archive_url":"https://api.github.com/repos/Qiskit/qiskit-terra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Qiskit/qiskit-terra/downloads","issues_url":"https://api.github.com/repos/Qiskit/qiskit-terra/issues{/number}","pulls_url":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls{/number}","milestones_url":"https://api.github.com/repos/Qiskit/qiskit-terra/milestones{/number}","notifications_url":"https://api.github.com/repos/Qiskit/qiskit-terra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Qiskit/qiskit-terra/labels{/name}","releases_url":"https://api.github.com/repos/Qiskit/qiskit-terra/releases{/id}","deployments_url":"https://api.github.com/repos/Qiskit/qiskit-terra/deployments","created_at":"2017-03-03T17:02:42Z","updated_at":"2018-11-26T13:19:05Z","pushed_at":"2018-11-26T09:31:24Z","git_url":"git://github.com/Qiskit/qiskit-terra.git","ssh_url":"git@github.com:Qiskit/qiskit-terra.git","clone_url":"https://github.com/Qiskit/qiskit-terra.git","svn_url":"https://github.com/Qiskit/qiskit-terra","homepage":"https://qiskit.org","size":30351,"stargazers_count":2230,"watchers_count":2230,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":670,"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":670,"open_issues":169,"watchers":2230,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls/1331"},"html":{"href":"https://github.com/Qiskit/qiskit-terra/pull/1331"},"issue":{"href":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/1331"},"comments":{"href":"https://api.github.com/repos/Qiskit/qiskit-terra/issues/1331/comments"},"review_comments":{"href":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls/1331/comments"},"review_comment":{"href":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Qiskit/qiskit-terra/pulls/1331/commits"},"statuses":{"href":"https://api.github.com/repos/Qiskit/qiskit-terra/statuses/22f16894c0b2671dba2df3ed21ce9bd0ce852fa7"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":192,"deletions":44,"changed_files":12}}
{"actor":{"display_login":"diego-plan9"}}