예제 #1
0
    import labrad
    cxn = labrad.connect()
    import time
    from treedict import TreeDict
    params = test_parameters.parameters
    d = TreeDict()
    for (collection, param), value in test_parameters.parameters.iteritems():
        d['{0}.{1}'.format(collection, param)] = value
#        if not (collection,param) in ramsey_dephase.required_parameters:
#            print 'parameter not listed among requirments', collection, param
    for key in d.keys():
        a = TreeDict()
        a.update(d)
        a.pop(key)
        try:
            sequence = spectrum_rabi(a)
#            sequence = ramsey_dephase(a)
        except Exception:
            pass
        else:
            print 'key not needed', key
    tinit = time.time()
    #    sequence = ramsey_dephase(d)
    sequence = spectrum_rabi(d)
    sequence.programSequence(cxn.pulser)
    print 'to program', time.time() - tinit
    cxn.pulser.start_number(10)
    cxn.pulser.wait_sequence_done()
    cxn.pulser.stop_sequence()
    dds = cxn.pulser.human_readable_dds()
    ttl = cxn.pulser.human_readable_ttl()
예제 #2
0
    for (collection,param), value in test_parameters.parameters.iteritems():
        d['{0}.{1}'.format(collection, param)] = value
#        if not (collection,param) in spectrum_rabi.required_parameters:
#            print 'parameter not listed among requirments', collection, param
#    for key in d.keys():
#        a = TreeDict()
#        a.update(d)
#        a.pop(key)
#        try:
#            sequence = spectrum_rabi(a)
#        except Exception:
#            pass
#        else:
#            print 'key not needed', key
    tinit = time.time()
    cs = spectrum_rabi(d)
    cs.programSequence(cxn.pulser)
    print 'to program', time.time() - tinit
#    cxn.pulser.start_number(10)
#    cxn.pulser.wait_sequence_done()
#    cxn.pulser.stop_sequence()
    dds = cxn.pulser.human_readable_dds()
    dds_set = set(dds)
    ttl = cxn.pulser.human_readable_ttl()
    ttl_agree =  ttl == [['0.0', '00000000000000000000000000000000'], ['1e-05', '00000000000000000010000000000000'], ['1.008e-05', '00000000000000000000000000000000'], ['6e-05', '00000000000000000010000000000000'], ['6.008e-05', '00000000000000000000000000000000'], ['0.00026', '00000000000000000010000000000000'], ['0.00026008', '00000000000000000000000000000000'], ['0.00132', '00000000000000000010000000000000'], ['0.00132008', '00000000000000000000000000000000'], ['0.00142', '00000000000000000010000000000000'], ['0.00142008', '00000000000000000000000000000000'], ['0.00242', '00000000000000000010000000000000'], ['0.00242008', '00000000000000000000000000000000'], ['0.00262', '00000000000000000010000000000000'], ['0.00262008', '00000000000000000000000000000000'], ['0.00282', '00000000000000000010000000000000'], ['0.00282008', '00000000000000000000000000000000'], ['0.00332', '00000000000000000010000000000000'], ['0.00332008', '00000000000000000000000000000000'], ['0.00352', '00000000000000000010000000000000'], ['0.00352008', '00000000000000000000000000000000'], ['0.00372', '00000000000000000010000000000000'], ['0.00372008', '00000000000000000000000000000000'], ['0.00422', '00000000000000000010000000000000'], ['0.00422008', '00000000000000000000000000000000'], ['0.00442', '00000000000000000010000000000000'], ['0.00442008', '00000000000000000000000000000000'], ['0.00462', '00000000000000000010000000000000'], ['0.00462008', '00000000000000000000000000000000'], ['0.00512', '00000000000000000010000000000000'], ['0.00512008', '00000000000000000000000000000000'], ['0.00532', '00000000000000000010000000000000'], ['0.00532008', '00000000000000000000000000000000'], ['0.00552', '00000000000000000010000000000000'], ['0.00552008', '00000000000000000000000000000000'], ['0.00602', '00000000000000000010000000000000'], ['0.00602008', '00000000000000000000000000000000'], ['0.00622', '00000000000000000010000000000000'], ['0.00622008', '00000000000000000000000000000000'], ['0.00642', '00000000000000000010000000000000'], ['0.00642008', '00000000000000000000000000000000'], ['0.00692', '00000000000000000010000000000000'], ['0.00692008', '00000000000000000000000000000000'], ['0.00712', '00000000000000000010000000000000'], ['0.00712008', '00000000000000000000000000000000'], ['0.00732', '00000000000000000010000000000000'], ['0.00732008', '00000000000000000000000000000000'], ['0.00782', '00000000000000000010000000000000'], ['0.00782008', '00000000000000000000000000000000'], ['0.00802', '00000000000000000010000000000000'], ['0.00802008', '00000000000000000000000000000000'], ['0.00822', '00000000000000000010000000000000'], ['0.00822008', '00000000000000000000000000000000'], ['0.00872', '00000000000000000010000000000000'], ['0.00872008', '00000000000000000000000000000000'], ['0.00892', '00000000000000000010000000000000'], ['0.00892008', '00000000000000000000000000000000'], ['0.00912', '00000000000000000010000000000000'], ['0.00912008', '00000000000000000000000000000000'], ['0.00962', '00000000000000000010000000000000'], ['0.00962008', '00000000000000000000000000000000'], ['0.00982', '00000000000000000010000000000000'], ['0.00982008', '00000000000000000000000000000000'], ['0.01002', '00000000000000000010000000000000'], ['0.01002008', '00000000000000000000000000000000'], ['0.010026', '00000000000000000010000000000000'], ['0.01002608', '00000000000000000000000000000000'], ['0.010036', '00000100000000000010100000000000'], ['0.01003608', '00000100000000000000100000000000'], ['0.010136', '00000000000000000000100000000000'], ['0.013036', '00000000000000000010000000000000'], ['0.01303608', '00000000000000000000000000000000'], ['0.013136', '00000000000000000010000000000000'], ['0.01313608', '00000000000000000001000000000000'], ['0.01313616', '00000000000000000000000000000000'], ['0.0', '00000000000000000000000000000000']]
    dds_result = set([('global397', 89.99999987194315, -13.000457770656901), ('729DP', 219.99999997671694, -63.0), ('854DP', 79.99999990686774, -3.0), ('866DP', 0.0, -63.0), ('global397', 89.99999987194315, -33.0004577706569), ('729DP', 224.99999986612238, -63.0), ('866DP', 79.99999990686774, -33.0004577706569), ('729DP', 219.99999997671694, -33.0004577706569), ('854DP', 79.99999990686774, -63.0), ('global397', 89.99999987194315, -63.0), ('729DP', 219.99999997671694, -10.000228885328454), ('854DP', 79.99999990686774, -11.0), ('729DP', 224.99999986612238, -11.0), ('global397', 89.99999987194315, -15.0), ('729DP', 214.99999990104698, -3.0), ('radial', 0.0, -63.0), ('global397', 0.0, -63.0), ('729DP', 0.0, -63.0), ('854DP', 0.0, -63.0), ('729DP', 214.99999990104698, -63.0), ('866DP', 79.99999990686774, -63.0), ('radial', 109.99999998835847, -63.0), ('854DP', 79.99999990686774, -33.0004577706569), ('866DP', 79.99999990686774, -11.0)])
    dds_agree = dds_set == dds_result
    print "TTL agree: {}".format(ttl_agree)
    print 'DDS agree: {}'.format(dds_agree)
#     print dds_set.issubset( dds_result)
#     print sorted(dds_set.difference(dds_result))
예제 #3
0
    for (collection, param), value in test_parameters.parameters.iteritems():
        d['{0}.{1}'.format(collection, param)] = value
#        if not (collection,param) in spectrum_rabi.required_parameters:
#            print 'parameter not listed among requirments', collection, param
#    for key in d.keys():
#        a = TreeDict()
#        a.update(d)
#        a.pop(key)
#        try:
#            sequence = spectrum_rabi(a)
#        except Exception:
#            pass
#        else:
#            print 'key not needed', key
    tinit = time.time()
    cs = spectrum_rabi(d)
    cs.programSequence(cxn.pulser)
    print 'to program', time.time() - tinit
    #    cxn.pulser.start_number(10)
    #    cxn.pulser.wait_sequence_done()
    #    cxn.pulser.stop_sequence()
    dds = cxn.pulser.human_readable_dds()
    dds_set = set(dds)
    ttl = cxn.pulser.human_readable_ttl()
    ttl_agree = ttl == [['0.0', '00000000000000000000000000000000'],
                        ['1e-05', '00000000000000000010000000000000'],
                        ['1.008e-05', '00000000000000000000000000000000'],
                        ['6e-05', '00000000000000000010000000000000'],
                        ['6.008e-05', '00000000000000000000000000000000'],
                        ['0.00026', '00000000000000000010000000000000'],
                        ['0.00026008', '00000000000000000000000000000000'],
예제 #4
0
    import labrad
    cxn = labrad.connect()
    import time
    from treedict import TreeDict
    params = test_parameters.parameters
    d = TreeDict()
    for (collection,param), value in test_parameters.parameters.iteritems():
        d['{0}.{1}'.format(collection, param)] = value
#        if not (collection,param) in ramsey_dephase.required_parameters:
#            print 'parameter not listed among requirments', collection, param
    for key in d.keys():
        a = TreeDict()
        a.update(d)
        a.pop(key)
        try:
            sequence = spectrum_rabi(a)
#            sequence = ramsey_dephase(a)
        except Exception:
            pass
        else:
            print 'key not needed', key
    tinit = time.time()
#    sequence = ramsey_dephase(d)
    sequence = spectrum_rabi(d)
    sequence.programSequence(cxn.pulser)
    print 'to program', time.time() - tinit
    cxn.pulser.start_number(10)
    cxn.pulser.wait_sequence_done()
    cxn.pulser.stop_sequence()
    dds = cxn.pulser.human_readable_dds()
    ttl = cxn.pulser.human_readable_ttl()