Skip to content

Commit

Permalink
Merge pull request #495 from DiCarloLab-Delft/develop_awgv1_devices
Browse files Browse the repository at this point in the history
Develop awgv1 devices
  • Loading branch information
AdriaanRol authored Aug 20, 2018
2 parents dd7a451 + da88d13 commit b0a4fc0
Show file tree
Hide file tree
Showing 54 changed files with 22,876 additions and 2,474 deletions.
27 changes: 19 additions & 8 deletions examples/AWG8_examples/AWG8_staircase_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,43 @@
# 2. Starting AWG8 test program in CCL #
##########################################

# AWG_type = 'microwave'
AWG_type = 'flux'
AWG_type = 'microwave'
# AWG_type = 'flux'

if AWG_type == 'microwave':
example_fp = os.path.abspath(
os.path.join(pq.__path__[0], '..', 'examples', 'CCLight_example',
'qisa_test_assembly', 'consecutive_cws_double.qisa'))

sequence_length = 32
staircase_sequence = range(1, sequence_length)
expected_sequence = [(0, list(staircase_sequence)),
(1, list(staircase_sequence)),
(2, list(reversed(staircase_sequence))),
(3, list(reversed(staircase_sequence)))]

elif AWG_type == 'flux':
example_fp = os.path.abspath(os.path.join(pq.__path__[0], '..',
'examples', 'CCLight_example',
'qisa_test_assembly', 'consecutive_cws_flux.qisa'))
'qisa_test_assembly',
'consecutive_cws_flux.qisa'))
sequence_length = 8
staircase_sequence = np.arange(1, sequence_length)
expected_sequence = [(0, list(staircase_sequence)),
(1, list(staircase_sequence)),
(2, list(staircase_sequence)),
(3, list(staircase_sequence))]

print(example_fp)
CCL.eqasm_program(example_fp)
CCL.start()



##########################################
# 3. Configuring the DIO protocol #
##########################################

# This creates a staircase pattern
import numpy as np

waveform_type = 'square'
# waveform_type = 'sin'

Expand Down Expand Up @@ -101,8 +113,7 @@
AWG8.upload_codeword_program()


success = AWG8.calibrate_dio_protocol()

AWG8.calibrate_dio_protocol(expected_sequence, True)

#######################################################################
# 4. Verifying the DIO calibration with back to back staircase #
Expand Down
Loading

0 comments on commit b0a4fc0

Please sign in to comment.