Skip to content

Commit

Permalink
Added additional condition to qml.execute
Browse files Browse the repository at this point in the history
  • Loading branch information
mudit2812 committed Jun 3, 2024
1 parent ac78db5 commit 62e2d4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pennylane/workflow/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def _make_inner_execute(
dev_execute = (
device.batch_execute
if execution_config is None
or not device.capabilities().get("supports_mid_measure", False)
else partial(
device.batch_execute,
postselect_mode=execution_config.mcm_config.postselect_mode,
Expand Down

0 comments on commit 62e2d4b

Please sign in to comment.