|
1695 | 1695 | If[Quiet[Check[CheckStatePreparation[PickRandomPsi[2^4],level->1],error=1;False]]&& |
1696 | 1696 | Quiet[Check[CheckStatePreparation[PickRandomPsi[2^4],level->2],error=2;False]]&& |
1697 | 1697 | Quiet[Check[CheckStatePreparation[PickRandomPsi[2^4],level->3],error=3;False]]&& |
1698 | | -Quiet[Check[CheckStatePreparation[N[randPermutMat[1,8]],level->1],error=1;False]]&& |
1699 | | -Quiet[Check[CheckStatePreparation[N[randPermutMat[1,8]],level->2],error=2;False]]&& |
1700 | | -Quiet[Check[CheckStatePreparation[N[randPermutMat[1,8]],level->3],error=3;False]] |
| 1698 | +Quiet[Check[CheckStatePreparation[N[{{0},{0},{1},{0},{0},{0},{0},{0}}],level->1],error=1;False]]&& |
| 1699 | +Quiet[Check[CheckStatePreparation[N[{{0},{0},{0},{0},{0},{1},{0},{0}}],level->2],error=2;False]]&& |
| 1700 | +Quiet[Check[CheckStatePreparation[N[{{0},{0},{0},{0},{0},{1},{0},{0}}],level->3],error=3;False]] |
1701 | 1701 | , |
1702 | 1702 | True, |
1703 | 1703 | Print["Error in StatePrepRecursive with error message code ",error];False |
|
1738 | 1738 | If[Quiet[Check[checkSparseStatePreparation[PickRandomPsi[2^4]],error=1;False]]&& |
1739 | 1739 | Quiet[Check[checkSparseStatePreparation[PickRandomSparsePsi[2^4,2^3]],error=2;False]]&& |
1740 | 1740 | Quiet[Check[checkSparseStatePreparation[PickRandomPsi[2^4]],error=3;False]]&& |
1741 | | -Quiet[Check[checkSparseStatePreparation[N[randPermutMat[1,8]]],error=1;False]]&& |
1742 | | -Quiet[Check[checkSparseStatePreparation[N[randPermutMat[1,8]]],error=2;False]]&& |
1743 | | -Quiet[Check[checkSparseStatePreparation[N[randPermutMat[1,8]]],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]] |
1744 | 1744 | , |
1745 | 1745 | True, |
1746 | 1746 | Print["Error in SparseStatePreparation with error message code ",error];False |
|
0 commit comments