Skip to content

Commit

Permalink
Merge pull request #418 from sandialabs/bugfix-fiducial-line-labels
Browse files Browse the repository at this point in the history
Bugfix for fiducial circuit line labels
  • Loading branch information
sserita committed Apr 15, 2024
2 parents 71cb717 + 7c71a5c commit 2de76d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pygsti/algorithms/fiducialselection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2013,6 +2013,12 @@ def create_candidate_fiducial_list(target_model, omit_identity= True, ops_to_omi
else:
availableFidList.extend(_circuits.list_random_circuits_onelen(
fidOps, fidLength, count, seed=candidate_seed))

#force the line labels on each circuit to match the state space labels for the target model.
#this is suboptimal for many-qubit models, so will probably want to revisit this. #TODO
for ckt in availableFidList:
ckt.line_labels = target_model.state_space.state_space_labels

return availableFidList


Expand Down

0 comments on commit 2de76d6

Please sign in to comment.