-
Notifications
You must be signed in to change notification settings - Fork 222
/
startup_example_script.py
51 lines (41 loc) · 1.46 KB
/
startup_example_script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
"""
Example startup script to perform full quantization of a two qubit, one cavity Josephson circuit.
The results are saved, printed, and nicely plotted.
------~~~~!!!!------~~~~
Please also see the Jupyter notebook tutorials!
------~~~~!!!!------~~~~
@author: Zlatko
"""
from pyEPR import ProjectInfo, DistributedAnalysis, QuantumAnalysis
# 1. Project and design. Open link to HFSS controls.
project_info = ProjectInfo(
"c:/sims",
project_name="two_qubit_one_cavity", # Project file name (string). "None" will get the current active one.
design_name="Alice_Bob", # Design name (string). "None" will get the current active one.
)
# 2a. Junctions. Specify junctions in HFSS model
project_info.junctions["jAlice"] = {
"Lj_variable": "LJAlice",
"rect": "qubitAlice",
"line": "alice_line",
"length": 0.0001,
}
project_info.junctions["jBob"] = {
"Lj_variable": "LJBob",
"rect": "qubitBob",
"line": "bob_line",
"length": 0.0001,
}
# 2b. Dissipative elements.
project_info.dissipative["dielectrics_bulk"] = [
"si_substrate"
] # supply names here, there are more options in project_info.dissipative.
project_info.dissipative["dielectric_surfaces"] = ["interface"]
# 3. Run analysis
epr_hfss = DistributedAnalysis(project_info)
epr_hfss.do_EPR_analysis()
# 4. Hamiltonian analysis
epr = QuantumAnalysis(epr_hfss.data_filename)
epr.analyze_all_variations(cos_trunc=8, fock_trunc=7)
epr.plot_hamiltonian_results()