qml.devices.preprocess.mid_circuit_measurements¶
- mid_circuit_measurements(tape, device, mcm_config=MCMConfig(mcm_method=None, postselect_mode=None), **kwargs)[source]¶
Provide the transform to handle mid-circuit measurements.
In the case where no method is specified, if the tape or device uses finite-shot, the
qml.dynamic_one_shottransform will be applied, otherwiseqml.defer_measurementsis used instead.
code/api/pennylane.devices.preprocess.mid_circuit_measurements
Download Python script
Download Notebook
View on GitHub