Quanlse/Simulator/PulseSimQCQ.py
def effectiveCoupling(obj: Union[PulseModel, QHamiltonian]) -> float:
    r"""
    Return effective coupling strength of Qubit-Qubit Model

    :param obj: input PulseModel object or QHamiltonian object

    :return: a float
    """

    matrixXY = (tensor(sigmaX().matrix, sigmaX().matrix) + tensor(sigmaY().matrix, sigmaY().matrix)) / 2
    subMatrix = computationalSubspace(obj)

    effectiveJ = trace(matrixXY @ subMatrix).real / 2

    return effectiveJ
r"""
    Return effective coupling strength of Qubit-Qubit Model

    :param obj: input PulseModel object or QHamiltonian object

    :return: a float
    
r"""
Return effective coupling strength of Qubit-Qubit Model
r " " " Return effective coupling strength of Qubit - Qubit Model
def effectiveCoupling(obj: Union[PulseModel, QHamiltonian]) -> float:
    matrixXY = (tensor(sigmaX().matrix, sigmaX().matrix) + tensor(sigmaY().matrix, sigmaY().matrix)) / 2
    subMatrix = computationalSubspace(obj)
    effectiveJ = trace(matrixXY @ subMatrix).real / 2
    return effectiveJ
def effectiveCoupling ( obj : Union [ PulseModel , QHamiltonian ] ) -> float : matrixXY = ( tensor ( sigmaX ( ) . matrix , sigmaX ( ) . matrix ) + tensor ( sigmaY ( ) . matrix , sigmaY ( ) . matrix ) ) / 2 subMatrix = computationalSubspace ( obj ) effectiveJ = trace ( matrixXY @ subMatrix ) . real / 2 return effectiveJ
r"""
Return effective coupling strength of Qubit-Qubit Model
r " " " Return effective coupling strength of Qubit - Qubit Model
r"""
    Return effective coupling strength of Qubit-Qubit Model

    :param obj: input PulseModel object or QHamiltonian object

    :return: a float
    """
None
obj
Union[PulseModel, QHamiltonian]
input PulseModel object or QHamiltonian object
input PulseModel object or QHamiltonian object