qml.ftqc

Warning

This module is currently experimental and will not maintain API stability between releases.

This module contains experimental features for supporting fault-tolerant workloads in PennyLane

Modules

Functions

cond_measure(condition, true_fn, false_fn)

Perform a mid-circuit measurement where the basis of the measurement is conditional on the supplied expression.

measure_arbitrary_basis(wires, angle, plane)

Perform a mid-circuit measurement in the basis defined by the plane and angle on the supplied qubit.

measure_x(wires[, reset, postselect])

Perform a mid-circuit measurement in the X basis.

measure_y(wires[, reset, postselect])

Perform a mid-circuit measurement in the Y basis.

measure_z(wires[, reset, postselect])

Perform a mid-circuit measurement in the Z basis.

diagonalize_mcms(tape)

Diagonalize any mid-circuit measurements in a parameterized basis into the computational basis.

generate_lattice(dims, lattice)

Generates a Lattice object with a given geometric parameters and its shape name.

Classes

GraphStatePrep(graph[, one_qubit_ops, ...])

Encode a graph state with a single graph operation applied on each qubit, and an entangling operation applied on nearest-neighbor qubits defined by the graph connectivity.

Lattice(lattice_shape[, graph, nodes, edges])

Represents a qubit lattice structure.

QubitGraph([graph, id])

A class to represent a hierarchical qubit memory model as nested graphs of qubits.

QubitMgr([num_qubits, start_idx])

The QubitMgr object maintains a list of active and inactive qubit wire indices used and for use during execution of a workload.

ParametricMidMeasureMP(wires, *, angle, plane)

Parametric mid-circuit measurement.

XMidMeasureMP(wires[, reset, postselect, id])

A subclass of ParametricMidMeasureMP that uses the X measurement basis (angle=0, plane="XY").

YMidMeasureMP(wires[, reset, postselect, id])

A subclass of ParametricMidMeasureMP that uses the Y measurement basis (angle=pi/2, plane="XY").