Skip to content

Commit

Permalink
make up updates
Browse files Browse the repository at this point in the history
  • Loading branch information
RunawayFancy committed Mar 25, 2024
1 parent b1f3066 commit d0f221a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1,234 deletions.
15 changes: 1 addition & 14 deletions QuSim/System/transmon_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def co_list(self):

def system_dynamics_mesolve(self, simulation_option, pulse_sequence, option = Options(rtol=1e-8)):
"""
A method
A method to convert your defined system into the master equation solver in qutip.
"""
state_list = simulation_option["initial_state"]
Expand All @@ -235,19 +235,6 @@ def system_dynamics_mesolve(self, simulation_option, pulse_sequence, option = Op

def master_eq_solver(self, H_d, t_simulation, simulation_step, initial_state, option = Options(rtol=1e-8)):
tlist = np.linspace(0, t_simulation, simulation_step)
# print(len(tlist))
# print(len(H_d[1][1]))
# option = Options(rtol=1e-8)
# print(H_d)
# print("==============================================================================")
# print(t_simulation)
# print("==============================================================================")
# print(simulation_step)
# print("==============================================================================")
# print(initial_state)
# print("==============================================================================")
# print(self.co_list())

result = mesolve(H_d, initial_state, tlist, c_ops = self.co_list(), options = option)
angle = get_angle(initial_state, result)
return result, angle
Expand Down
Loading

0 comments on commit d0f221a

Please sign in to comment.