{"push_id":2711651434,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"83a7b23fe7856c85fcb7ac77d6cc9d411b13a4e3","before":"1dca6be91615da6a31190ed3b2179c9ca1833eb5","commits":[{"sha":"83a7b23fe7856c85fcb7ac77d6cc9d411b13a4e3","author":{"name":"Diego M. Rodríguez","email":"4a1ef185c5619dbf1aa93e35b34956b74dc3ef68@gmail.com"},"message":"Add QObj class (#589)\n\n* Adapt QObj class from #144\r\n\r\nReintroduce a basic `QObj` class, along with subobjects and helper\r\nclasses, based on a simplification of the one introduced in #144. The\r\nrequired attributes in the specification are treated as mandatory\r\narguments for the constructor, leaving the optinal and the unspecified\r\nas kwargs.\r\n\r\n* Update QObj.as_dict, fixes, add test\r\n\r\nRevise the `QObjStructure.as_dict()` function in order to make it\r\ngeneric (at the base class level) and recursive: the public attributes\r\nof a structure are traversed, handling lists and delegating into each\r\nsubobject.\r\nUse `SimpleNameSpace` for simplifying the handling of `kwargs` on the\r\nconstructors via standard Python facilities.\r\nUpdate several QObj structures to reflect the current schema.\r\nAdd a test for QObj instantation and `as_dict()` comparison.\r\nMake the `QObjStructures` pickable via `__reduce__`, in order to allow\r\npassing them to the futures.\r\n\r\n* Update QObj to the current structure, tweaks\r\n\r\nUpdate the `QObj` and the individual classes in the module to reflect\r\nthe current data structure, as opposed to the ideal specification, in\r\norder to have it working with the current codebase.\r\nAdd a version field for introducing version management, and a\r\n`from_dict` class method to ease the transition.\r\nUpdate qobj test.\r\n\r\n* Adjust codebase to use QObj (with old schema)\r\n\r\nAdjust the codebase and the tests in order to use the `QObj` class:\r\n* update local backends\r\n* update jobs\r\n* update QuantumProgram methods\r\n* adjust tests accordingly\r\n\r\nIn general, an attempt has been made to work with `QObj` classes\r\ndirectly, but in some tests and other bits the helper function\r\n`from_dict` has been used.\r\n\r\n* Fix QObj test and tweak class internals\r\n\r\n* Rename QObj to qobj, misc fixes after review\r\n\r\n* Rename `QObj` and all the occurrences to `Qobj`.\r\n* Fix statevector simulators validation, using the Qobj instead of\r\n  converting to a dict.\r\n* Fix statevector simulators instruction conversion.\r\n* Fix test that was failing due to expecting a dict.","distinct":true,"url":"https://api.github.com/repos/Qiskit/qiskit-terra/commits/83a7b23fe7856c85fcb7ac77d6cc9d411b13a4e3"}]}
{"actor":{"display_login":"delapuente"}}