-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
this removes the extra NOPs, but I'm not sure whether the labels are correct, and doesn't work for multiple qubits, and is an awful hack
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -461,6 +461,12 @@ def compile_to_hardware(seqs, | |||||
for wire in old_wire_instrs.keys(): | ||||||
wire.instrument = old_wire_instrs[wire] | ||||||
|
||||||
# FIXME: a one-off hack for the TDM | ||||||
for s in physWires.keys(): | ||||||
if s.label == 'BBNAPS1-12': | ||||||
# print('----- %s' % str(s)) | ||||||
tdm_i = pattern_module.tdm_instructions(physWires[s][0]) | ||||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dellard
Contributor
|
aps_metafile = compile_to_hardware([copy.copy(seq)], '/tmp/aps') |
APS2TDMPattern
as translator? APS2Pattern
doesn't have the function tdm_instructions
._TDM_INSTRUCTIONS
already available here? Line 69 in 494f00a
tdm_instr = QGL.drivers.APS2TDMPattern.get_tdm_instructions() |
@dellard I understand it's a hack, but still I'm not sure how it works. The TDM shouldn't have the
tx_channels
key, sopattern_module
can't be defined here. Instead of a label, can we search for the instrument typeTDM
? It's already defined as a subclass ofAPS2
in Auspex