qml.devices.default_qubit.adjoint_state_measurements

adjoint_state_measurements(tape, device_vjp=False)[source]

Perform adjoint measurement preprocessing.

  • Allows a tape with only expectation values through unmodified

  • Raises an error if non-expectation value measurements exist and any have diagonalizing gates

  • Turns the circuit into a state measurement + classical postprocesssing for arbitrary measurements

Parameters

tape (QuantumTape) – the input circuit

Contents

Using PennyLane

Release news

Development

API

Internals