Skip to content

Commit

Permalink
Make black linter conform
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick committed Mar 3, 2024
1 parent e92ab51 commit cf65a72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/qutip_qtrl/pulsegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ def gen_pulse(self, coeffs=None):
for i in range(self.num_coeffs):
if self.fix_freqs:
phase = self.freqs[i] * self.time
else: # optimise frequencies as part of the parameters
else: # optimise frequencies as part of the parameters
phase = self.coeffs[i, 2] * self.time
pulse += self.coeffs[i, 0] * np.sin(phase) + self.coeffs[
i, 1
Expand Down
5 changes: 3 additions & 2 deletions src/qutip_qtrl/pulseoptim.py
Original file line number Diff line number Diff line change
Expand Up @@ -2042,8 +2042,9 @@ def create_pulse_optimizer(
optim.pulse_generator = []
for j in range(n_ctrls):
crab_pgen = pulsegen.PulseGenCrabFourier(
dyn=dyn, num_coeffs=num_coeffs,
fix_freqs=alg_params.get("fix_frequency", True)
dyn=dyn,
num_coeffs=num_coeffs,
fix_freqs=alg_params.get("fix_frequency", True),
)
if init_coeff_scaling is not None:
crab_pgen.scaling = init_coeff_scaling
Expand Down

0 comments on commit cf65a72

Please sign in to comment.