iqm.cpc.compiler.standard_stages.validate_settings

iqm.cpc.compiler.standard_stages.validate_settings#

iqm.cpc.compiler.standard_stages.validate_settings(circuits, settings)#

Validate the settings for circuit execution options (only some combinations make sense).

Raises an error if full MOVE gate tracking is used without move gate validation. Raises a warning if terminal measurements would be used with active reset.

Parameters:
  • circuits (list[Circuit]) – The circuits to compiler.

  • settings (SettingNode) – The settings tree to validate.

Returns:

The circuits as they were.

Raises:

CircuitError – if full MOVE gate tracking is used without move gate validation.

Return type:

list[Circuit]