qml.qinfo

Overview

Warning

The qinfo module is deprecated and scheduled to be removed in v0.40. Most quantum information transforms are available as measurement processes (see the measurements module for more details). Additionally, the transforms are also available as standalone functions in the math and gradients modules.

This module provides a collection of methods to return quantum information quantities from QNode returning state().

Transforms

QNode transforms for the quantum information quantities.

Functions

fidelity(qnode0, qnode1, wires0, wires1)

Compute the fidelity for two QNode returning a state() (a state can be a state vector or a density matrix, depending on the device) acting on quantum systems with the same size.

mutual_info(tape, wires0, wires1[, base])

Compute the mutual information from a QuantumTape returning a state():

purity(tape, wires, **kwargs)

Compute the purity of a QuantumTape returning state().

reduced_dm(tape, wires, **kwargs)

Compute the reduced density matrix from a QNode returning state().

relative_entropy(qnode0, qnode1, wires0, wires1)

Compute the relative entropy for two QNode returning a state() (a state can be a state vector or a density matrix, depending on the device) acting on quantum systems with the same size.

trace_distance(qnode0, qnode1, wires0, wires1)

Compute the trace distance for two QNode returning a state() (a state can be a state vector or a density matrix, depending on the device) acting on quantum systems with the same size.

vn_entanglement_entropy(tape, wires0, wires1)

Compute the Von Neumann entanglement entropy from a circuit returning a state():

vn_entropy(tape, wires[, base])

Compute the Von Neumann entropy from a QuantumTape returning a state().