solvers
Solvers
mesolve(H, rho0, tlist, saveat_tlist=None, c_ops=None, solver_options=None)
Quantum Master Equation solver.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
H
|
Union[Qarray, Callable[[float], Qarray]]
|
time dependent Hamiltonian function or time-independent Qarray. |
required |
rho0
|
Qarray
|
initial state, must be a density matrix. For statevector evolution, please use sesolve. |
required |
tlist
|
Array
|
time list |
required |
saveat_tlist
|
Optional[Array]
|
list of times at which to save the state. If None, save at all times in tlist. Default: None. |
None
|
c_ops
|
Optional[Qarray]
|
qarray list of collapse operators |
None
|
solver_options
|
Optional[SolverOptions]
|
SolverOptions with solver options |
None
|
Returns:
Type | Description |
---|---|
Qarray
|
list of states |
Source code in jaxquantum/core/solvers.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
|
propagator(H, ts, solver_options=None)
Generate the propagator for a time dependent Hamiltonian.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
H
|
Qarray or callable
|
A Qarray static Hamiltonian OR a function that takes a time argument and returns a Hamiltonian. |
required |
ts
|
float or Array
|
A single time point or an Array of time points. |
required |
Returns:
Type | Description |
---|---|
Qarray or List[Qarray]: The propagator for the Hamiltonian at time t. OR a list of propagators for the Hamiltonian at each time in t. |
Source code in jaxquantum/core/solvers.py
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 |
|
sesolve(H, rho0, tlist, saveat_tlist=None, solver_options=None)
Schrödinger Equation solver.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
H
|
Union[Qarray, Callable[[float], Qarray]]
|
time dependent Hamiltonian function or time-independent Qarray. |
required |
rho0
|
Qarray
|
initial state, must be a density matrix. For statevector evolution, please use sesolve. |
required |
tlist
|
Array
|
time list |
required |
saveat_tlist
|
Optional[Array]
|
list of times at which to save the state. If None, save at all times in tlist. Default: None. |
None
|
solver_options
|
Optional[SolverOptions]
|
SolverOptions with solver options |
None
|
Returns:
Type | Description |
---|---|
Qarray
|
list of states |
Source code in jaxquantum/core/solvers.py
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
|
solve(f, ρ0, tlist, saveat_tlist, args, solver_options=None)
Gets teh desired solver from diffrax.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
solver_options
|
Optional[SolverOptions]
|
dictionary with solver options |
None
|
Returns:
Type | Description |
---|---|
solution |
Source code in jaxquantum/core/solvers.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|