Skip to content

Commit 90ad17f

Browse files
chore: modified to conform with flake8
1 parent 161dea6 commit 90ad17f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tutorials-v5/optimal-control/control-grape-cnot.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import numpy as np
2222
import qutip as qt
2323
# the library for quantum control
2424
import qutip_qtrl.pulseoptim as qtrl
25-
from qutip.ipynbtools import version_table
2625
```
2726

2827
```python
@@ -140,7 +139,7 @@ def plot_control_amplitudes(times, final_amps, labels):
140139
label=labels[j],
141140
color=color,
142141
alpha=alpha
143-
)
142+
)
144143
ax.set_title(f"Control Fields Highlighting: {labels[i]}")
145144
ax.set_xlabel("Time")
146145
ax.set_ylabel(labels[i])
@@ -150,19 +149,19 @@ def plot_control_amplitudes(times, final_amps, labels):
150149
plt.tight_layout()
151150
plt.show()
152151

152+
153153
plot_control_amplitudes(times, result.final_amps / (2 * np.pi), H_labels)
154154
```
155155

156156
## Fidelity/overlap
157157

158158
```python
159-
160159
U_target
161160
```
162161

163162
```python
164-
U_f=result.evo_full_final
165-
U_f.dims = [[2,2], [2, 2]]
163+
U_f = result.evo_full_final
164+
U_f.dims = [[2, 2], [2, 2]]
166165
```
167166

168167
```python

0 commit comments

Comments
 (0)