qml.devices.qubit.measure¶
- measure(measurementprocess, state, is_state_batched=False)[source]¶
Apply a measurement process to a state.
- Parameters
measurementprocess (MeasurementProcess) – measurement process to apply to the state
state (TensorLike) – the state to measure
is_state_batched (bool) – whether the state is batched or not
- Returns
the result of the measurement
- Return type
Tensorlike
code/api/pennylane.devices.qubit.measure
Download Python script
Download Notebook
View on GitHub