Module: classical_sim#
Functionality for the Bloq.call_classically(…) protocol.
Classes#
class ClassicalValDistribution: This class represents a distribution of classical values.
class MeasurementPhase: Sentinel value for phases based on measurement outcomes:
class ClassicalSimState: A mutable class for classically simulating composite bloqs.
class PhasedClassicalSimState: A mutable class for classically simulating composite bloqs with phase tracking.
Functions#
add_ints(...): Performs addition modulo \(2^\mathrm{num\_bits}\) of (un)signed in a reversible way.
call_cbloq_classically(...): Propagate on_classical_vals calls through a composite bloq’s contents.
do_phased_classical_simulation(...): Do a phased classical simulation of the bloq.
format_classical_truth_table(...): Get a formatted tabular representation of the classical truth table.
get_classical_truth_table(...): Get a ‘truth table’ for a classical-reversible bloq.
Type Aliases#
Other Members
- LeftDangle
Instance of
qualtran.DanglingT- RightDangle
Instance of
qualtran.DanglingT