pygsti.report.row

Defines the Row class

Module Contents

Classes

Row

Representation of a table row

class pygsti.report.row.Row(row_data=None, formatters=None, labels=None, non_markovian_ebs=False)

Bases: object

Representation of a table row

Parameters
  • row_data (list) – Raw data for the table

  • formatters (list[string], optional) – Formatting options for each cell

  • labels (list[string], optional) – Labeling options for each cell

  • non_markovian_ebs (bool) – Whether non-Markovian error bars should be used

__getstate__(self)
__setstate__(self, d)
add(self, data, formatter=None, label=None)

Adds a cell with the given data, formatter and label

Parameters
  • data (ReportableQty) – Cell data to be reported

  • formatter (string, optional) – Name of the cell formatter to be used (ie ‘Effect’)

  • label (string, optional) – Label of the cell

Returns

None

render(self, fmt, specs)

Render a row of cells

Parameters
  • fmt (string) – Format to be rendered in

  • specs (dict) – Options for formatting

Returns

list