Skip to content

Commit

Permalink
add __repr__ method for ParameterTable (Qiskit#3754)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
ewinston and mergify[bot] committed Jan 28, 2020
1 parent f812e9f commit 4afdf31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qiskit/circuit/parametertable.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ def __iter__(self):

def __len__(self):
return len(self._table)

def __repr__(self):
return 'ParameterTable({0})'.format(repr(self._table))

0 comments on commit 4afdf31

Please sign in to comment.