Skip to content

Commit

Permalink
Revert "Added RB axis descriptor"
Browse files Browse the repository at this point in the history
This reverts commit 593dc0c.
  • Loading branch information
matthewware committed Jun 15, 2018
1 parent 593dc0c commit c2f63d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
11 changes: 0 additions & 11 deletions QGL/BasicSequences/RB.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
from ..Compiler import compile_to_hardware
from ..PulseSequencePlotter import plot_pulse_files
from ..Cliffords import clifford_seq, clifford_mat, inverse_clifford
<<<<<<< Updated upstream
from .helpers import create_cal_seqs, cal_descriptor
=======
from .helpers import create_cal_seqs, basic_RB_descriptor, cal_descriptor
>>>>>>> Stashed changes

import os
from csv import reader
Expand Down Expand Up @@ -84,14 +80,7 @@ def SingleQubitRB(qubit, seqs, purity=False, showPlot=False, add_cals=True):
seqsBis += create_cal_seqs((qubit, ), 2)
axis_descriptor.append(cal_descriptor((qubit,), 2))

<<<<<<< Updated upstream
metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor, extra_meta = {'sequences':seqs})
=======
metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor=[
basic_RB_descriptor(len(seqs)),
cal_descriptor((qubit,), 2)
])
>>>>>>> Stashed changes

if showPlot:
plot_pulse_files(metafile)
Expand Down
9 changes: 0 additions & 9 deletions QGL/BasicSequences/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,3 @@ def delay_descriptor(delays, desired_units="us"):
'partition': 1
}
return axis_descriptor

def basic_RB_descriptor(num_seqs, desired_units="number"):
axis_descriptor = {
'name': 'sequence',
'unit': desired_units,
'points': list(range(num_seqs)),
'partition': 1
}
return axis_descriptor

1 comment on commit c2f63d4

@matthewware
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what happens when you don't pull from origin on a regular basis.

Please sign in to comment.