Skip to content

Commit

Permalink
Label to Crossbar
Browse files Browse the repository at this point in the history
and some comments
  • Loading branch information
Diego Ristè committed Sep 10, 2019
1 parent 7594475 commit 18dc28f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QGL/drivers/APS2Pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,8 +1390,9 @@ def tdm_instructions(seqs):

elif isinstance(s, PulseSequencer.Pulse):
if s.label == 'MEAS' and s.maddr != (-1, 0):
# tdm_chan specifies the input channel to the TDM carrying the qubit state. Defaults to 1
tdm_chan = m.channel.processor_chan.channel if getattr(m.channel, 'processor_chan') else 1
instructions.append(CrossBar(2**m.maddr[1], 2**(tdm_chan-1)))
instructions.append(CrossBar(2**m.maddr[1], 2**(tdm_chan-1)), label=label)
instructions.append(LoadCmp(label=label))
instructions.append(StoreMeas(s.maddr[0], 1 << 16, label=label))

Expand All @@ -1405,6 +1406,7 @@ def tdm_instructions(seqs):
if len(set(maddr))>1:
raise Exception('Storing simultaneous measurements on different addresses not supported.')
for n,m in enumerate(sim_meas):
# each tdm_chan specifies the input channel to the TDM carrying the corresponding qubit state. Default values are the first n channels
tdm_chan = m.channel.processor_chan.channel if getattr(m.channel, 'processor_chan') else n+1
instructions.append(CrossBar(2**m.maddr[1], 2**(tdm_chan-1)))
instructions.append(LoadCmp(label=label))
Expand Down

0 comments on commit 18dc28f

Please sign in to comment.