add_instance#

ExecutableBlock.add_instance(instance: ManagedInstance, execution_options: ExecutionOption) None#

Add instance with execution options.

Parameters:
instanceManagedInstance

Managed instance.

execution_optionsExecutionOption

Execution options.

Raises:
ValueError

If an instance with the same uid already exists in the block.

ValueError

If adding a managed parametric system when one already exists in the block.