Skip to content

Commit ec6719d

Browse files
added another sort in create_subbasis also for deterministic purposes
1 parent 306e08f commit ec6719d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pygsti/baseobjs/errorgenbasis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def overlaps(sslbls):
232232
sub_labels, sub_indices = zip(*[(lbl, i) for i, lbl in enumerate(self._labels)
233233
if overlaps(lbl[0])])
234234
sub_state_space = self.state_space.create_subspace(sub_sslbls)
235+
sub_sslbls = sorted(sub_sslbls)
235236
else:
236237
sub_labels = []
237238
for lbl in self.labels:

0 commit comments

Comments
 (0)