Skip to content

Commit ec4eb02

Browse files
committed
minor cleanups
1 parent 241dfbc commit ec4eb02

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/isotropic/utils/state_transforms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def statevector_to_hypersphere(Phi: Array) -> Array:
2020
Array
2121
hypersphere as a real JAX array of dimension 2^{n+1}
2222
"""
23-
breakpoint()
2423
S = jnp.zeros(int(2 ** (log(Phi.shape[0], 2) + 1)), dtype=float)
2524
for x in range(S.shape[0] // 2):
2625
S = S.at[2 * x].set(Phi[x].real)

tests/test_error_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def test_add_isotropic_error():
1616
Phi = jnp.ones(4, dtype=complex)
1717
Phi = Phi / jnp.linalg.norm(Phi)
18-
Phi_spherical = statevector_to_hypersphere(Phi) # d+1 = 4
18+
Phi_spherical = statevector_to_hypersphere(Phi)
1919
basis = get_orthonormal_basis(
2020
Phi_spherical
2121
) # gives d vectors with d+1 elements each
@@ -32,7 +32,7 @@ def test_add_isotropic_error():
3232
)
3333

3434
def g(theta):
35-
return normal_integrand(theta, d=Phi_spherical.shape[0], sigma=0.6)
35+
return normal_integrand(theta, d=Phi_spherical.shape[0], sigma=0.96)
3636

3737
theta_zero = get_theta_zero(x=0.5, g=g)
3838
Psi_spherical = add_isotropic_error(Phi_spherical, e2=e2, theta_zero=theta_zero)

0 commit comments

Comments
 (0)