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¶
|
Perform a mid-circuit measurement where the basis of the measurement is conditional on the supplied expression. |
|
Perform a mid-circuit measurement in the basis defined by the plane and angle on the supplied qubit. |
|
Perform a mid-circuit measurement in the X basis. |
|
Perform a mid-circuit measurement in the Y basis. |
|
Perform a mid-circuit measurement in the Z basis. |
|
Diagonalize any mid-circuit measurements in a parameterized basis into the computational basis. |
Convert a circuit to the textbook MBQC formalism based on the procedures outlined in Raussendorf et al. 2003, https://doi.org/10.1103/PhysRevA.68.022312. |
|
|
Converts a circuit expressed in arbitrary gates to the limited gate set that we can convert to the textbook MBQC formalism |
|
Generates a |
|
A program-capture compatible way to create a GraphStatePrep template. |
|
Correct sample results offline based on the executed quantum script and the mid-circuit measurement results for each shot. |
Classes¶
|
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. |
|
Arbitrary single qubit rotation with angles XZX |
|
Represents a qubit lattice structure. |
|
A class to represent a hierarchical qubit memory model as nested graphs of qubits. |
|
The |
|
Parametric mid-circuit measurement. |
|
A subclass of ParametricMidMeasureMP that uses the X measurement basis (angle=0, plane="XY"). |
|
A subclass of ParametricMidMeasureMP that uses the Y measurement basis (angle=pi/2, plane="XY"). |
Overview¶
Pauli Tracker¶
This module contains functions for tracking, commuting Pauli operations in a Clifford circuit as well as getting measurement corrections.
|
Convert a Pauli operator to its xz representation up to a global phase, i.e., \(encode_{xz}(Pauli)=(x,z)=X^xZ^z\), where \(x\) is the exponent of the |
|
Convert x, z to a Pauli operator class. |
|
Get the result of a product of a list of Pauli operators. |
|
Gets the list of xz-encoded bits representing the list of input Pauli ops after being commuted through the given Clifford op. |
|
Correct sample results offline based on the executed quantum script and the mid-circuit measurement results for each shot. |