File tree Expand file tree Collapse file tree 2 files changed +13
-15
lines changed Expand file tree Collapse file tree 2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ Here are some examples to help you get started with `jaxquantum`.
7
7
Let's simulate the time dynamics of a quantum harmonic oscillator with single photon loss.
8
8
9
9
``` python
10
+ from jax import jit
11
+ import jaxquantum as jqt
12
+ import jax.numpy as jnp
13
+ import matplotlib.pyplot as plt
14
+
10
15
N = 100
11
16
12
17
omega_a = 2.0 * jnp.pi* 5.0
Original file line number Diff line number Diff line change 10
10
" %autoreload 2"
11
11
]
12
12
},
13
- {
14
- "cell_type" : " code" ,
15
- "execution_count" : 7 ,
16
- "metadata" : {},
17
- "outputs" : [],
18
- "source" : [
19
- " from jax import jit\n " ,
20
- " import jaxquantum as jqt \n " ,
21
- " import jax.numpy as jnp\n " ,
22
- " import matplotlib.pyplot as plt"
23
- ]
24
- },
25
13
{
26
14
"cell_type" : " markdown" ,
27
15
"metadata" : {},
31
19
},
32
20
{
33
21
"cell_type" : " code" ,
34
- "execution_count" : 14 ,
22
+ "execution_count" : 2 ,
35
23
"metadata" : {},
36
24
"outputs" : [
37
25
{
38
26
"name" : " stderr" ,
39
27
"output_type" : " stream" ,
40
28
"text" : [
41
- " 100% |\u001b [35m██████████\u001b [0m| [00:01 <00:00, 93.89 %/s] \n "
29
+ " 100% |\u001b [35m██████████\u001b [0m| [00:00 <00:00, 106.67 %/s]\n "
42
30
]
43
31
},
44
32
{
53
41
}
54
42
],
55
43
"source" : [
44
+ " from jax import jit\n " ,
45
+ " import jaxquantum as jqt \n " ,
46
+ " import jax.numpy as jnp\n " ,
47
+ " import matplotlib.pyplot as plt\n " ,
48
+ " \n " ,
56
49
" N = 100\n " ,
57
50
" \n " ,
58
51
" omega_a = 2.0*jnp.pi*5.0\n " ,
102
95
},
103
96
{
104
97
"cell_type" : " code" ,
105
- "execution_count" : null ,
98
+ "execution_count" : 1 ,
106
99
"metadata" : {},
107
100
"outputs" : [],
108
101
"source" : [
You can’t perform that action at this time.
0 commit comments