Code Monkey home page Code Monkey logo

Comments (3)

rathishcholarajan avatar rathishcholarajan commented on August 19, 2024 1

Yes both great points. I've update the description accordingly. Thanks @daka1510!

from qiskit-ibm-runtime.

daka1510 avatar daka1510 commented on August 19, 2024

Thanks for writing this up, @rathishcholarajan.

  • If we filter by name we need to be aware that the name does necessarily uniquely identify a single service instance. In these (rare) cases I think it would be sufficient to log a warning message to make the user aware.
    image
  • How about reusing the generic locator parameter we agreed on in #29 instead of introducing another parameter? If we can easily implement is_crn(locator) that would make it fully transparent for the user, e.g.
IBMRuntimeService(auth="cloud",  locator="crn:v1:bluemix:public:quantum-computing:us-east:...")
IBMRuntimeService(auth="cloud",  locator="Quantum Services-og")
IBMRuntimeService(auth="legacy", locator="https://auth.quantum-computing.ibm.com") 

from qiskit-ibm-runtime.

jyu00 avatar jyu00 commented on August 19, 2024

Sounds good. My only comment is we can also save the instance name in the qiskitrc file, so we can look it up there instead of an API call. For example, we can allow

# saves a single CRN
IBMRuntimeService.save_account(token=<API key>, locator="Quantum Services-og")
# saves all CRN and sets a default
IBMRuntimeService.save_account(token=<API key>, locator=None, default="Quantum Services-og")

The equivalent legacy call would be

IBMRuntimeService.save_account(token=<API token>, default="my_hub/my_group/my_project")

from qiskit-ibm-runtime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.