Skip to content

Fallback to simulator if token not set, explain where to get token from #4281

@romeokienzler

Description

@romeokienzler

URL to the relevant tutorial

https://quantum.cloud.ibm.com/docs/en/tutorials/quantum-approximate-optimization-algorithm

Select all that apply

  • new content request
  • typo
  • code bug
  • out-of-date content
  • broken link
  • other

Describe the fix or the content request.

fixed in #4280

I've realized it is hard to work with the notebooks since it is not explained how and where to obtain the token/crn.

I've added this explaination and also added a fallback to the simulator in case the token is not set

Also the free backend doesn't seem to support the 'with Session:' directive, therefore I've changed that code block as well.

The notebook now runs fine up to 'Part II. Scale it up!' since 'backend.coupling_map' is called and neither the AerSimulator nor the free tier backend seem to support it

For new content requests - if the request is accepted, do you want to write the content?

I will write (or already have written) a draft of the proposed content

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions