Skip to content

Commit

Permalink
Other missing import
Browse files Browse the repository at this point in the history
not sure why these were not necessary so far
  • Loading branch information
dieris committed Sep 20, 2016
1 parent d8818df commit c614585
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion QGL/BasicSequences/AllXY.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ..PulseSequencePlotter import plot_pulse_files
import QGL.PulseShapes
from .helpers import create_cal_seqs

import numpy as np

def AllXY(q, showPlot=False):
firstPulses = [Id(q)] + 2 * [X(q), Y(q)] + 3 * [X90(q), Y90(q)] + [
Expand Down
4 changes: 2 additions & 2 deletions QGL/BasicSequences/Decoupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from ..Compiler import compile_to_hardware
from ..PulseSequencePlotter import plot_pulse_files
from .helpers import create_cal_seqs, time_descriptor, cal_descriptor

import numpy as np

def HahnEcho(qubit, pulseSpacings, periods=0, calRepeats=2, showPlot=False):
"""
Expand All @@ -23,7 +23,7 @@ def HahnEcho(qubit, pulseSpacings, periods=0, calRepeats=2, showPlot=False):
seqs = []
for k in range(len(pulseSpacings)):
seqs.append([X90(qubit), Id(qubit, pulseSpacings[k]), Y(qubit), Id(qubit,pulseSpacings[k]), \
U90(qubit,phase=2*pi*periods/len(pulseSpacings)*k), MEAS(qubit)])
U90(qubit,phase=2*np.pi*periods/len(pulseSpacings)*k), MEAS(qubit)])

#Tack on the calibration scalings
seqs += create_cal_seqs((qubit, ), calRepeats)
Expand Down
1 change: 1 addition & 0 deletions QGL/BasicSequences/RB.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from csv import reader
import numpy as np
from functools import reduce
import operator


def create_RB_seqs(numQubits, lengths, repeats=32, interleaveGate=None):
Expand Down
2 changes: 1 addition & 1 deletion QGL/BasicSequences/Rabi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import QGL.PulseShapes
from .helpers import create_cal_seqs, time_descriptor, cal_descriptor
from functools import reduce

import operator

def RabiAmp(qubit, amps, phase=0, showPlot=False):
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_Compiler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import h5py
import unittest
import numpy as np

from QGL.PulseSequencer import TAPulse
from QGL import *


Expand Down

0 comments on commit c614585

Please sign in to comment.