Skip to content

API Reference

ppvm exposes the following classes:

Pauli Propagation

Class Description
PauliSum Pauli sum for standard (lossless) qubit simulations
LossyPauliSum Pauli sum with support for qubit loss channels

Both classes share the same gate and noise channel interface. LossyPauliSum additionally exposes loss_channel and reset_loss_channel.

Note that the loss simulation comes with a slight memory overhead to track the information of which qubit was lost. See Simulating loss for details.

Generalized Stabilizer Tableau

Class Description
GeneralizedTableau Generalized stabilizer tableau for circuits with Clifford + non-Clifford gates, noise, and measurement
MeasurementResult Measurement outcome enum (ZERO, ONE, LOST)