qml.devices.default_qubit

The default.qubit device is PennyLane’s standard qubit-based device.

Classes

DefaultQubit([wires, shots, seed, max_workers])

A PennyLane device written in Python and capable of backpropagation derivatives.

Functions

accepted_sample_measurement(m)

Specifies whether or not a measurement is accepted when sampling.

adjoint_observables(obs)

Specifies whether or not an observable is compatible with adjoint differentiation on DefaultQubit.

adjoint_ops(op)

Specify whether or not an Operator is supported by adjoint differentiation.

adjoint_state_measurements(tape[, device_vjp])

Perform adjoint measurement preprocessing.

all_state_postprocessing(results, …)

Process a state measurement back into the original measurements.

null_postprocessing(results)

An empty post-processing function.

observable_stopping_condition(obs)

Specifies whether or not an observable is accepted by DefaultQubit.

stopping_condition(op)

Specify whether or not an Operator object is supported by the device.

stopping_condition_shots(op)

Specify whether or not an Operator object is supported by the device with shots.

Contents

Using PennyLane

Development

API

Internals