Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dissasembler to dissassemble a compiled qobj #2137

Merged
merged 22 commits into from
Apr 24, 2019

Conversation

mtreinish
Copy link
Member

Summary

This commit adds a new dissassembler module that has a single
dissasemble function. This is used to take an input qobj and return the
circuits, run_config, and user headers which are stored in it.

Details and comments

Fixes #1952

This commit adds a new dissassembler module that has a single
dissasemble function. This is used to take an input qobj and return the
circuits, run_config, and user headers which are stored in it.

Fixes Qiskit#1952
@mtreinish
Copy link
Member Author

Still WIP until I add tests covering this

@mtreinish
Copy link
Member Author

The tests will start passing when #2138 is merged

@mtreinish mtreinish changed the title [WIP] Add dissasembler to dissassemble a compiled qobj Add dissasembler to dissassemble a compiled qobj Apr 17, 2019
This rule is completely broken and often just returns false postives.
The latest example can be found here:

https://travis-ci.com/Qiskit/qiskit-terra/jobs/194288168

We can just rely on python to catch a cyclic import issues, because
it'll raise an error if it's not resolvable.
@ajavadia ajavadia merged commit be17d42 into Qiskit:master Apr 24, 2019
@mtreinish mtreinish deleted the add-dissassembler branch April 24, 2019 11:31
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
* Add dissasembler to dissassemble a compiled qobj

This commit adds a new dissassembler module that has a single
dissasemble function. This is used to take an input qobj and return the
circuits, run_config, and user headers which are stored in it.

Fixes Qiskit#1952

* Add tests

* Add header asserts

* Fix lint

* Fix tests

* Fix lint

* Deprecate qobj_to_circuits

* Fix typos

* Disable cyclic-import pylint rule

This rule is completely broken and often just returns false postives.
The latest example can be found here:

https://travis-ci.com/Qiskit/qiskit-terra/jobs/194288168

We can just rely on python to catch a cyclic import issues, because
it'll raise an error if it's not resolvable.

* Revert "Disable cyclic-import pylint rule"

This reverts commit 7e614ec.

* Update import paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

need a disassembler to replace qobj_to_circuits
4 participants