Skip to content

Commit 7739de8

Browse files
committed
Fix test_lpi_bounds to use correct cardinalities in set_distribution
1 parent e5b4790 commit 7739de8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_pipeline.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,12 @@ def test_lpi_bounds(self):
574574
sdp = InflationSDP(trivial)
575575
cols = [np.array([]),
576576
np.array([[1, 2, 0, 0],
577-
[1, 2, 1, 0]]),
577+
[1, 2, 1, 0]]),
578578
np.array([[1, 1, 0, 0],
579-
[1, 2, 0, 0],
580-
[1, 2, 1, 0]])]
579+
[1, 2, 0, 0],
580+
[1, 2, 1, 0]])]
581581
sdp.generate_relaxation(cols)
582-
sdp.set_distribution(np.ones((2, 1)) / 2,
582+
sdp.set_distribution(np.ones((2, 2)) / 2,
583583
use_lpi_constraints=True)
584584

585585
self.assertGreaterEqual(len(sdp.semiknown_moments), 1,

0 commit comments

Comments
 (0)