Ejemplo n.º 1
0
    def test_qlibrary_qubits_jj_manhattan_instantiate(self):
        """Test the instantiaion of jj_dolan."""
        design = designs.DesignPlanar()
        try:
            jj_manhattan
        except Exception:
            self.fail("jj_manhattan failed")

        try:
            jj_manhattan(design, "my_name2", options={})
        except Exception:
            self.fail("jj_manhattan(design, \"my_name2\", options={})")

        try:
            jj_manhattan(design, "my_name3", options={}, make=False)
        except Exception:
            self.fail(
                "jj_manhattan(design, \"my_name3\", options={}, make=False)")
Ejemplo n.º 2
0
    def test_qlibrary_jj_manhattan_options(self):
        """Test the default options of JJ_Manhattan were not accidentially changed."""
        design = designs.DesignPlanar()
        my_jj_manhattan = jj_manhattan(design,
                                       name='test_jj_manhattan',
                                       options={})
        options = my_jj_manhattan.default_options

        self.assertEqual(len(options), 7)
        self.assertEqual(options['JJ_pad_lower_width'], '25um')
        self.assertEqual(options['JJ_pad_lower_height'], '10um')
        self.assertEqual(options['JJ_pad_lower_pos_x'], '0')
        self.assertEqual(options['JJ_pad_lower_pos_y'], '0')
        self.assertEqual(options['finger_lower_width'], '1um')
        self.assertEqual(options['finger_lower_height'], '20um')
        self.assertEqual(options['extension'], '1um')