예제 #1
0
 def getCPMGAxisDesc(pulseSpacing, numPulses, calRepeats):
     return [
         # NOTE: numPulses is not a numpy array, so cannot multiply by a float
         # But thankfully, np.array(np.array) = np.array so this is always a good move here.
         delay_descriptor(pulseSpacing * np.array(numPulses)),
         cal_descriptor(('qubit', ), calRepeats)
     ]
예제 #2
0
 def getHahnAxisDesc(pulseSpacings, calRepeats):
     return [
         delay_descriptor(2 * pulseSpacings),
         cal_descriptor(('qubit', ), calRepeats)
     ]
예제 #3
0
 def getCRtAxisDesc(lengths):
     return [
         delay_descriptor(np.concatenate((np.repeat(lengths,3), np.repeat(lengths,3)))),
         cal_descriptor(('targetQ',), 2)
     ]
예제 #4
0
 def getECLAxisDesc(lengths, calRepeats):
     return [
         delay_descriptor(np.concatenate((lengths, lengths))),
         # Hard code there are 2 qubits
         cal_descriptor(('controlQ', 'targetQ'), calRepeats)
     ]
예제 #5
0
파일: T1T2.py 프로젝트: stjordanis/pyqgl2
 def rAD(pulseSpacings, calRepeats):
     return [
         delay_descriptor(pulseSpacings),
         cal_descriptor(('qubit',), calRepeats)
     ]
예제 #6
0
파일: T1T2.py 프로젝트: stjordanis/pyqgl2
 def irAD(delays, calRepeats):
     return [
         delay_descriptor(delays),
         cal_descriptor(('qubit',), calRepeats)
         ]
예제 #7
0
파일: Rabi.py 프로젝트: stjordanis/pyqgl2
 def getRWidthAD(widths):
     return [delay_descriptor(widths)]