Quanlse/Simulator/PulseSimQCQ.py
def generateCNOT(ham: QHamiltonian, cirLine, scheduler) -> QJob:
        """
        Generate the CNOT gate using echoed-CR gate and virtual-Z gate.
        """
        qIndex = list(cirLine.qRegIndexList)
        jobVZ = generateVZ(ham=ham, cirLine=CircuitLine(VZ(pi / 2), [qIndex[0]]))
        jobEchoedCR = generateEchoedCR(ham=ham, cirLine=CircuitLine(CR, qIndex), scheduler=scheduler)
        jobRX = generate1QGate(ham=ham, cirLine=CircuitLine(RX(pi / 2), [qIndex[1]]), scheduler=scheduler)

        return jobVZ + jobEchoedCR + jobRX

        Generate the CNOT gate using echoed-CR gate and virtual-Z gate.
        
Generate the CNOT gate using echoed-CR gate and virtual-Z gate.
Generate the CNOT gate using echoed - CR gate and virtual - Z gate .
def generateCNOT(ham: QHamiltonian, cirLine, scheduler) -> QJob:
        qIndex = list(cirLine.qRegIndexList)
        jobVZ = generateVZ(ham=ham, cirLine=CircuitLine(VZ(pi / 2), [qIndex[0]]))
        jobEchoedCR = generateEchoedCR(ham=ham, cirLine=CircuitLine(CR, qIndex), scheduler=scheduler)
        jobRX = generate1QGate(ham=ham, cirLine=CircuitLine(RX(pi / 2), [qIndex[1]]), scheduler=scheduler)
        return jobVZ + jobEchoedCR + jobRX
def generateCNOT ( ham : QHamiltonian , cirLine , scheduler ) -> QJob : qIndex = list ( cirLine . qRegIndexList ) jobVZ = generateVZ ( ham = ham , cirLine = CircuitLine ( VZ ( pi / 2 ) , [ qIndex [ 0 ] ] ) ) jobEchoedCR = generateEchoedCR ( ham = ham , cirLine = CircuitLine ( CR , qIndex ) , scheduler = scheduler ) jobRX = generate1QGate ( ham = ham , cirLine = CircuitLine ( RX ( pi / 2 ) , [ qIndex [ 1 ] ] ) , scheduler = scheduler ) return jobVZ + jobEchoedCR + jobRX
Generate the CNOT gate using echoed-CR gate and virtual-Z gate.
Generate the CNOT gate using echoed - CR gate and virtual - Z gate .
"""
        Generate the CNOT gate using echoed-CR gate and virtual-Z gate.
        """
ham
QHamiltonian
cirLine
scheduler