estimator.cost.Cost.str

Contents

estimator.cost.Cost.str#

Cost.str(keyword_width=0, newline=False, round_bound=2048, compact=False)[source]#
Parameters:
  • keyword_width – keys are printed with this width

  • newline – insert a newline

  • round_bound – values beyond this bound are represented as powers of two

  • compact – do not add extra whitespace to align entries

EXAMPLE:

>>> from estimator.cost import Cost
>>> s = Cost(delta=5, bar=2)
>>> s
δ: 5.000000, bar: 2