Quanlse/Simulator/PulseSimQCQ.py
def generateEchoedCR(ham: QHamiltonian, cirLine, scheduler) -> QJob:
        """
        Generate echoed cross-resonance gate
        """
        qIndex = list(cirLine.qRegIndexList)
        jobCR = generateCR(ham=ham, cirLine=CircuitLine(CR, qIndex), scheduler=scheduler, tFactor=0.5)
        jobX = generate1QGate(ham=ham, cirLine=CircuitLine(X, [qIndex[0]]), scheduler=scheduler)
        jobCRMinus = generateCR(ham=ham, cirLine=CircuitLine(CR, qIndex), scheduler=scheduler,
                                ampFactor=-1, tFactor=0.5)

        return jobCR + jobX + jobCRMinus + jobX

        Generate echoed cross-resonance gate
        
Generate echoed cross-resonance gate
Generate echoed cross - resonance gate
def generateEchoedCR(ham: QHamiltonian, cirLine, scheduler) -> QJob:
        qIndex = list(cirLine.qRegIndexList)
        jobCR = generateCR(ham=ham, cirLine=CircuitLine(CR, qIndex), scheduler=scheduler, tFactor=0.5)
        jobX = generate1QGate(ham=ham, cirLine=CircuitLine(X, [qIndex[0]]), scheduler=scheduler)
        jobCRMinus = generateCR(ham=ham, cirLine=CircuitLine(CR, qIndex), scheduler=scheduler,
                                ampFactor=-1, tFactor=0.5)
        return jobCR + jobX + jobCRMinus + jobX
def generateEchoedCR ( ham : QHamiltonian , cirLine , scheduler ) -> QJob : qIndex = list ( cirLine . qRegIndexList ) jobCR = generateCR ( ham = ham , cirLine = CircuitLine ( CR , qIndex ) , scheduler = scheduler , tFactor = 0.5 ) jobX = generate1QGate ( ham = ham , cirLine = CircuitLine ( X , [ qIndex [ 0 ] ] ) , scheduler = scheduler ) jobCRMinus = generateCR ( ham = ham , cirLine = CircuitLine ( CR , qIndex ) , scheduler = scheduler , ampFactor = - 1 , tFactor = 0.5 ) return jobCR + jobX + jobCRMinus + jobX
Generate echoed cross-resonance gate
Generate echoed cross - resonance gate
"""
        Generate echoed cross-resonance gate
        """
ham
QHamiltonian
cirLine
scheduler