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).
Register.with_automatic_layoutis 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_layoutin 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).