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

added ibmqx_url as additional option to IBMQiskitDevice #39

Closed
wants to merge 1 commit into from
Closed

added ibmqx_url as additional option to IBMQiskitDevice #39

wants to merge 1 commit into from

Conversation

czachow
Copy link

@czachow czachow commented Jul 8, 2019

fixes issue 38

@codecov
Copy link

codecov bot commented Jul 8, 2019

Codecov Report

Merging #39 into master will decrease coverage by 3.83%.
The diff coverage is 14.28%.

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
- Coverage   92.35%   88.52%   -3.84%     
==========================================
  Files           6        6              
  Lines         301      305       +4     
==========================================
- Hits          278      270       -8     
- Misses         23       35      +12
Impacted Files Coverage Δ
pennylane_qiskit/devices.py 88% <14.28%> (-5.88%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73cf9b5...687867a. Read the comment docs.

@josh146
Copy link
Member

josh146 commented Jul 8, 2019

Thanks @czachow for the PR!

@josh146 josh146 requested a review from quantshah July 8, 2019 14:39
@josh146 josh146 added the enhancement New feature or request label Jul 8, 2019
@quantshah
Copy link
Contributor

Thank you @czachow for the quick fix. @josh146, some of the tests for the plugins do not make sense, should we exclude them somehow or still try to make dummy variables and tests e.g., device initializations?

@josh146
Copy link
Member

josh146 commented Jul 21, 2019

some of the tests for the plugins do not make sense, should we exclude them somehow or still try to make dummy variables and tests e.g., device initializations?

What tests do you mean?

@quantshah
Copy link
Contributor

Like a test to see if the plugin can connect to the IBM devices, e.g., passing of the url and token are working fine. In this PR, the test coverage decreases because we implement a kwarg for url but have no way of testing it. So my question is, can we write some test which makes sure that the plugin works well with the IBM API (with some dummy token and url). This way, if the IBM API changes (like the addition of a url option), these tests will fail and we will get to know immediately without having to wait for users to report it. But this will expose the token and API which seems like a security risk.

@quantshah
Copy link
Contributor

Also, to get the codecov green light on this PR, we need to increase the test cov for the url option or disable testing of those lines. Any suggestions or preference on whether we should disable the lines or add some sort of dummy test?

@co9olguy
Copy link
Member

@quantshah does it make any sense to mock out the IBM API? The test would just verify that we are passing on the required credentials and understand what to do with returned objects.

If not, then it likely makes more sense to disable testing of those lines

@josh146
Copy link
Member

josh146 commented Jul 24, 2019

@co9olguy we had a quick chat with @ajavadia from Qiskit, it seems the best approach is to create a small integration test using an IBM API key (this is the approach they take in their CI as well). We can do this securely by encrypting it for use on Travis.

@co9olguy
Copy link
Member

Sounds good, we can follow their lead 👍

@quantshah
Copy link
Contributor

Could this be closed now that #44 is merged?

@josh146 josh146 closed this Aug 6, 2019
@josh146
Copy link
Member

josh146 commented Aug 6, 2019

@czachow, thanks for your fix! This was included in PR #44, which necessitated a separate PR due to a large refactor of the code base. I will include your username in the changelog :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants