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

test_compiler breaks AerJob status check #1203

Closed
nonhermitian opened this issue Nov 3, 2018 · 1 comment · Fixed by #1215
Closed

test_compiler breaks AerJob status check #1203

nonhermitian opened this issue Nov 3, 2018 · 1 comment · Fixed by #1215
Assignees
Labels
bug Something isn't working
Milestone

Comments

@nonhermitian
Copy link
Contributor

Informations

  • Qiskit Terra version: master
  • Python version:
  • Operating system:

What is the current behavior?

When running the tests, the following does not work when run after the test_compiler module:

backend = Aer.get_backend('qasm_simulator')
job_sim = execute(qc, backend)
job_sim.status()
Traceback (most recent call last):
  File "/Users/paul/Desktop/Github_repos/qiskit-core/test/python/test_cpp.py", line 34, in test_aer_status
    job_sim.status()
  File "/Users/paul/Desktop/Github_repos/qiskit-core/qiskit/backends/aer/aerjob.py", line 37, in _wrapper
    return func(self, *args, **kwargs)
  File "/Users/paul/Desktop/Github_repos/qiskit-core/qiskit/backends/aer/aerjob.py", line 118, in status
    self.__class__.__name__))
qiskit.backends.joberror.JobError: 'Unexpected behavior of AerJob'

However, if run before that module, it works fine. This is true both when running locally and on Travis. This is blocking #975.

Steps to reproduce the problem

What is the expected behavior?

Suggested solutions

@nonhermitian nonhermitian added the bug Something isn't working label Nov 3, 2018
@nonhermitian nonhermitian added this to the 0.7 milestone Nov 3, 2018
@nonhermitian nonhermitian added this to To do in Backends, Qobj, and Result via automation Nov 3, 2018
@atilag
Copy link
Member

atilag commented Nov 4, 2018

I'm taking over this one

@atilag atilag self-assigned this Nov 4, 2018
Backends, Qobj, and Result automation moved this from To do to Done Nov 5, 2018
nonhermitian added a commit that referenced this issue Nov 8, 2018
* Allow for monitoring job status

* update for linter

* updates to monitor

* updates

* lint fix

* add doc strings

* update changelog

* Fix parallezation in transpile.compile

* Revert "Fix parallezation in transpile.compile"

This reverts commit 98e78d0.

* remove oops files

* Add tests

* fix lint

* more lint fix

* update notebook

* slightly mod test

* lint

* remove problem test

* make test shorter

* Add wrapper test back

Need #1203 resolved before this will work

* move items to tools

* fix linter

* fix notebook tests

* fix issue with conflicts not merging prorerly
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this issue Jul 30, 2019
* Allow for monitoring job status

* update for linter

* updates to monitor

* updates

* lint fix

* add doc strings

* update changelog

* Fix parallezation in transpile.compile

* Revert "Fix parallezation in transpile.compile"

This reverts commit 98e78d0.

* remove oops files

* Add tests

* fix lint

* more lint fix

* update notebook

* slightly mod test

* lint

* remove problem test

* make test shorter

* Add wrapper test back

Need Qiskit#1203 resolved before this will work

* move items to tools

* fix linter

* fix notebook tests

* fix issue with conflicts not merging prorerly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants