Skip to content

Commit

Permalink
Merge pull request #179 from BBN-Q/feature/cal_descriptor
Browse files Browse the repository at this point in the history
More generic cal_descriptor
  • Loading branch information
Diego Ristè committed Nov 1, 2018
2 parents a8579ac + 44e39f1 commit 15dc15f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions QGL/BasicSequences/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def create_cal_seqs(qubits, numRepeats, measChans=None, waitcmp=False, delay=Non
[cal_seq.append(qwait(kind='CMP')) for cal_seq in full_cal_seqs]
return full_cal_seqs

def cal_descriptor(qubits, numRepeats, partition=2):
states = ['0', '1']
def cal_descriptor(qubits, numRepeats, partition=2, states = ['0', '1']):
# generate state set in same order as we do above in create_cal_seqs()
state_set = [reduce(operator.add, s) for s in product(states, repeat=len(qubits))]
descriptor = {
Expand Down

0 comments on commit 15dc15f

Please sign in to comment.