-
Notifications
You must be signed in to change notification settings - Fork 145
Allow saving default provider in account #611
Conversation
Still need to update the tutorial, but it should be good for review. |
qiskit/providers/ibmq/ibmqfactory.py
Outdated
@@ -38,7 +40,25 @@ | |||
|
|||
|
|||
class IBMQFactory: | |||
"""Factory and account manager for IBM Quantum Experience.""" | |||
"""Factory and account manager for IBM Quantum Experience. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I meant was that since this block comment is meant to describe the the entire IBMQFactory class, it should contain more information than just how to save a default provider. Like it should explain what this class is used for and the terminologies (token, provider, configuration file, etc). Perhaps this can go into a different doc PR.
Note that my original comment regarding the docstring was
Perhaps a nice, concise description, of how to use IBMQFactory to manage accounts can go into IBMQFactory's docstring.
Also while it doesn't hurt to give users more information, I don't think it's necessary to describe in details how to specify a default provider.
Also, as a note. Per your suggestion, I'll create another PR to handle the documentation for |
Summary
Addresses #545
Details and comments
Allows saving a default provider with
save_account()
and enabling a default provider usingenable_account()
by specifying a provider as a string in the format<hub_name>/<group_name>/<project_name>
.