pygsti.report.cell

Defines the Cell class

Module Contents

Classes

Cell

Representation of a table cell, containing formatting and labeling info

class pygsti.report.cell.Cell(data=None, formatter_name=None, label=None)

Bases: object

Representation of a table cell, containing formatting and labeling info

Parameters
  • data (ReportableQty) – data to be reported

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

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

__getstate__(self)
__setstate__(self, d)
_render_data(self, fmt, spec)

Render self.data as a string

Parameters
  • fmt (string) – name of format to be used

  • spec (dict) – dictionary of formatting options

Returns

string

render(self, fmt, spec)

Render full cell as a string

Parameters
  • fmt (string) – name of format to be used

  • spec (dict) – dictionary of formatting options

Returns

string