Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_1Q_GST(self):
if istravis:
raise unittest.SkipTest("FIX ME -- Figure out pygsti integration for Travis.")
self.set_awg_dir('GST')
# list of GST gate strings
if GSTTools.PYGSTI_PRESENT:
# generate the gate gatestrings
import pygsti
from pygsti.construction import std1Q_XYI
#Create a data set
gs_target = std1Q_XYI.gs_target
fiducials = std1Q_XYI.fiducials
germs = std1Q_XYI.germs
maxLengths = [1,2,4]
listOfExperiments = pygsti.construction.make_lsgst_experiment_list(gs_target.gates.keys(), fiducials, fiducials, germs, maxLengths)
else:
listOfExperiments = list(np.load('tests/test_data/awg/TestAPS2/GST/GST/listOfExperiments.npy'))
seqs = list(GSTTools.gst_map_1Q(listOfExperiments, self.q1))
filenames = compile_to_hardware(seqs, 'GST/GST')
self.compare_sequences('GST')