Skip to content

Commit

Permalink
Fix cals for simult. RB
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ristè committed Apr 25, 2018
1 parent 32477fe commit 420c9d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions QGL/BasicSequences/RB.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def SimultaneousRB_AC(qubits, seqs, showPlot=False, add_cals=True):

#Tack on the calibration sequences
if add_cals:
seqsBis += create_cal_seqs((qubit, ), 2)
axis_descriptor.append(cal_descriptor((qubit,), 2))
seqsBis += create_cal_seqs((qubits), 2)
axis_descriptor.append(cal_descriptor((qubits), 2))

metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor)

Expand Down
5 changes: 4 additions & 1 deletion QGL/Compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ def compile_to_hardware(seqs,
fileName,
suffix='',
axis_descriptor=None,
add_slave_trigger=True):
add_slave_trigger=True,
extra_meta=None):
'''
Compiles 'seqs' to a hardware description and saves it to 'fileName'.
Other inputs:
Expand Down Expand Up @@ -450,6 +451,8 @@ def compile_to_hardware(seqs,
'axis_descriptor': axis_descriptor,
'receivers': receiver_measurements
}
if extra_meta:
meta.update(extra_meta)
metafilepath = os.path.join(config.AWGDir, fileName + '-meta.json')
with open(metafilepath, 'w') as FID:
json.dump(meta, FID, indent=2, sort_keys=True)
Expand Down

0 comments on commit 420c9d1

Please sign in to comment.