From 62e2d4b6c24039b4ce09c0b6eb01fae349edf352 Mon Sep 17 00:00:00 2001 From: Mudit Pandey Date: Mon, 3 Jun 2024 17:43:30 -0400 Subject: [PATCH] Added additional condition to qml.execute --- pennylane/workflow/execution.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pennylane/workflow/execution.py b/pennylane/workflow/execution.py index a3f7dc845d9..e38f0c5d89a 100644 --- a/pennylane/workflow/execution.py +++ b/pennylane/workflow/execution.py @@ -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,