Skip to content

Commit 56d35cc

Browse files
committed
Whitespace cleanups
1 parent a6a158a commit 56d35cc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/python/test_example_spinchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def mapCoeffs_SpinChainToQuandary(N: int, h: list, U: list, J: list):
127127
# 01 transition frequencies [GHz] per site (omega_q)
128128
freq01 = np.zeros(N)
129129
for i in range(1, N-1):
130-
freq01[i] = (-2*h[i] -2*U[i] -2*U[i-1]) / (2*np.pi)
130+
freq01[i] = (-2*h[i] - 2*U[i] - 2*U[i-1]) / (2*np.pi)
131131
freq01[0] = (-2*h[0] - 2*U[0]) / (2*np.pi)
132132
freq01[N-1] = (-2*h[N-1] - 2*U[N-2]) / (2*np.pi)
133133

tests/python/test_example_swap12.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
NUM_SAMPLES = 10
114114
SAMPLE_INDICES = [int(i * (EXPECTED_LENGTH - 1) / (NUM_SAMPLES - 1)) for i in range(NUM_SAMPLES)]
115115

116+
116117
def test_example_swap12(mpi_exec):
117118
"""Test SWAP 1-2 gate optimization using Python interface."""
118119

tests/python/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66

77

88
def assert_results_equal(
9-
t, pt, qt, infidelity, energy, population, T, n_osc, n_levels, sample_indices,
10-
expected_length, expected_infidelity, expected_pt, expected_qt, expected_energy, expected_population
11-
):
9+
t, pt, qt, infidelity, energy, population, T, n_osc, n_levels, sample_indices,
10+
expected_length, expected_infidelity, expected_pt, expected_qt, expected_energy, expected_population):
1211
"""
1312
Utility function to assert that the results of quantum run match the expected values within given tolerances.
1413
"""

0 commit comments

Comments
 (0)