pygsti.protocols.freeformsim.FreeformDataSimulator#
- class FreeformDataSimulator#
Bases:
DataSimulatorComputes arbitrary functions of the state data simulator that also computes user-defined functions of the final states.
Methods
__init__()apply(df)Apply this data simulator to a data frame having a Circuit column.
apply_fn(series)compute_freeform_data(circuit)Computes the simulated free-form data for a single circuit.
run(edesign[, memlimit, comm])Run this data simulator on an experiment design.
- apply(df)#
Apply this data simulator to a data frame having a Circuit column.
- Parameters:
df (pandas.DataFrame) – The data frame to apply to.
- Return type:
pandas.DataFrame
- compute_freeform_data(circuit)#
Computes the simulated free-form data for a single circuit.
- Parameters:
circuit (Circuit) – The circuit to compute data for.
- Return type:
dict
- run(edesign, memlimit=None, comm=None)#
Run this data simulator on an experiment design.
- Parameters:
edesign (ExperimentDesign) – The input experiment design.
memlimit (int, optional) – A rough per-processor memory limit in bytes.
comm (mpi4py.MPI.Comm, optional) – When not
None, an MPI communicator used to run this data simulator in parallel.
- Return type: