Example #1
0
def get_zero_pi_hamiltonian(flux):
    phi_grid = scq.Grid1d(-6 * np.pi, 6 * np.pi, 200)
    EJ_CONST = 1 / 3.95
    zero_pi = scq.ZeroPi(grid=phi_grid,
                         EJ=EJ_CONST,
                         EL=10.0**(-2),
                         ECJ=1 / (8.0 * EJ_CONST),
                         EC=None,
                         ECS=10.0**(-3),
                         ng=0.1,
                         flux=flux,
                         ncut=30)
    ham = zero_pi.hamiltonian()
    return ham
Example #2
0
    def __init__(
        self,
        EJ: float,
        EL: float,
        ECJ: float,
        EC: float,
        dEJ: float,
        dCJ: float,
        dC: float,
        dEL: float,
        flux: float,
        ng: float,
        zeropi_cutoff: int,
        zeta_cutoff: int,
        grid: Grid1d,
        ncut: int,
        ECS: float = None,
        truncated_dim: int = 6,
    ) -> None:
        self._zeropi = scqubits.ZeroPi(
            EJ=EJ,
            EL=EL,
            ECJ=ECJ,
            EC=EC,
            ng=ng,
            flux=flux,
            grid=grid,
            ncut=ncut,
            dEJ=dEJ,
            dCJ=dCJ,
            ECS=ECS,
            # the zeropi_cutoff defines the truncated_dim of the "base" zeropi object
            truncated_dim=zeropi_cutoff,
        )
        self.dC = dC
        self.dEL = dEL
        self.zeta_cutoff = zeta_cutoff
        self._sys_type = type(self).__name__
        self.truncated_dim = truncated_dim
        self._evec_dtype = np.complex_
        self._init_params.remove(
            "ECS"
        )  # used for file IO Serializable purposes; remove ECS as init parameter
        self._image_filename = os.path.join(
            os.path.dirname(os.path.abspath(__file__)),
            "qubit_img/fullzeropi.jpg")

        dispatch.CENTRAL_DISPATCH.register("GRID_UPDATE", self)
Example #3
0
    def __init__(self,
                 EJ,
                 EL,
                 ECJ,
                 EC,
                 dEJ,
                 dCJ,
                 dC,
                 dEL,
                 flux,
                 ng,
                 zeropi_cutoff,
                 zeta_cutoff,
                 grid,
                 ncut,
                 ECS=None,
                 truncated_dim=None):
        self._zeropi = scqubits.ZeroPi(
            EJ=EJ,
            EL=EL,
            ECJ=ECJ,
            EC=EC,
            ng=ng,
            flux=flux,
            grid=grid,
            ncut=ncut,
            dEJ=dEJ,
            dCJ=dCJ,
            ECS=ECS,
            # the zeropi_cutoff defines the truncated_dim of the "base" zeropi object
            truncated_dim=zeropi_cutoff)
        self.dC = dC
        self.dEL = dEL
        self.zeta_cutoff = zeta_cutoff
        self._sys_type = type(self).__name__
        self.truncated_dim = truncated_dim
        self._evec_dtype = np.complex_
        self._init_params.remove(
            'ECS'
        )  # used for file IO Serializable purposes; remove ECS as init parameter
        self._image_filename = os.path.join(
            os.path.dirname(os.path.abspath(__file__)),
            'qubit_img/fullzeropi.jpg')

        dispatch.CENTRAL_DISPATCH.register('GRID_UPDATE', self)