Skip to content

Commit 24ce12c

Browse files
committed
Fixed Unit test for SparseStatePreparation
1 parent a54b8f4 commit 24ce12c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Unit_tests.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,9 +1738,9 @@
17381738
If[Quiet[Check[checkSparseStatePreparation[PickRandomPsi[2^4]],error=1;False]]&&
17391739
Quiet[Check[checkSparseStatePreparation[PickRandomSparsePsi[2^4,2^3]],error=2;False]]&&
17401740
Quiet[Check[checkSparseStatePreparation[PickRandomPsi[2^4]],error=3;False]]&&
1741-
Quiet[Check[checkSparseStatePreparation[N[(randPermutMat[8,8])[[1]]]],error=1;False]]&&
1742-
Quiet[Check[checkSparseStatePreparation[N[(randPermutMat[8,8])[[1]]]],error=2;False]]&&
1743-
Quiet[Check[checkSparseStatePreparation[N[(randPermutMat[8,8])[[1]]]],error=3;False]]
1741+
Quiet[Check[checkSparseStatePreparation[N[{{0},{0},{1},{0},{0},{0},{0},{0}}]],error=1;False]]&&
1742+
Quiet[Check[checkSparseStatePreparation[N[{{0},{0},{0},{0},{0},{1},{0},{0}}]],error=2;False]]&&
1743+
Quiet[Check[checkSparseStatePreparation[N[{{0},{0},{0},{0},{0},{1},{0},{0}}]],error=3;False]]
17441744
,
17451745
True,
17461746
Print["Error in SparseStatePreparation with error message code ",error];False

0 commit comments

Comments
 (0)