Skip to content

Commit b13cfa8

Browse files
committed
remove unnecessary specification of self.__class__.__name__ in OpGaugeGroupElement._to_nice_serialization and DirectSumUnitaryGroupElement._to_nice_serialization.
1 parent 11e5bd8 commit b13cfa8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pygsti/models/gaugegroup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,9 @@ def num_params(self):
529529

530530
def _to_nice_serialization(self):
531531
state = super()._to_nice_serialization()
532-
state.update({'class': self.__class__.__name__,
533-
'operation_matrix': self._encodemx(self._operation.to_dense())
534-
})
532+
state.update(
533+
{'operation_matrix': self._encodemx(self._operation.to_dense())}
534+
)
535535
return state
536536

537537
@classmethod
@@ -1231,7 +1231,6 @@ def inverse(self):
12311231
def _to_nice_serialization(self):
12321232
state = super()._to_nice_serialization()
12331233
state.update({
1234-
'class': self.__class__.__name__,
12351234
'subelements': tuple([se.to_nice_serialization() for se in self.subelements]),
12361235
'basis': self.basis if isinstance(self.basis, str) else self.basis.to_nice_serialization()
12371236
})

0 commit comments

Comments
 (0)