Skip to content

Supplemental lab typo/error? #4

@AndreaBarletta

Description

@AndreaBarletta

Hi, I’ve come across a couple of issues while following the example code.

The text says the code is meant for the Eagle architecture, but the backend used is ibm_torino, which uses the Heron architecture instead. In my case, least_busy() seems to pick ibm_sherbroke. This causes compatibility issues, even when I manually change the qubit_lines, the circuit still doesn't execute properly.

Additionally, the following line fails (probably due to the fact that ibm_shrebroke already implements this):

backend.target.add_instruction(IfElseOp, name="if_else")

It throws an exception and prevents the rest of the code from working.

Forcing the backend to use ibm_torino using

backend = service.backend("ibm_torino")

seems to fix everything (although it's not consistent with the text as it specifies using Eagle architecture)

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions