qml.devices.qutrit_mixed.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 process being applied to the state.

Return type

Tensorlike