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

Contents

Using PennyLane

Release news

Development

API

Internals