Skip to content

Investigate with_automatic_layout potential failure #213

Description

@sgrava

Register.with_automatic_layout is used to maximise QPU compatibility of programs.
However, this step can fail and we need to catch this error (ultimately it will also be raised by pulser.)

Description

Following discussion #207 #208, and looking at pulser documentation.
The use of Register.with_automatic_layout in QoolQit code can fail if:

  • RuntimeError – If the automatic layout generation fails to meet the device constraints.
  • NotImplementedError – When the register has differentiable coordinates (i.e. torch Tensors with requires_grad=True).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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