Skip to content

Commit

Permalink
Manually restoring aux unit test files
Browse files Browse the repository at this point in the history
I can't explain why these weren't brought forward with the merge from dev into master
  • Loading branch information
TysonRayJones authored Dec 12, 2018
1 parent 2bb85fd commit f895970
Show file tree
Hide file tree
Showing 32 changed files with 304 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=0, controlQubit=0
0.00820689635760, -0.30905091682644
0.15879178686658, 0.13858335428409
0.00405631396590, -0.66206581574289
0.86339781460184, 0.27603734472437
-0.00009426842579, -1.01508071465933
1.56800384233710, 0.41349133516466
-0.00424485081749, -1.36809561357578
2.27260987007236, 0.55094532560494
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=1, controlQubit=0
0.00000000000000, 0.10000000000000
-0.02926953804624, -0.74996359794759
0.40000000000000, 0.50000000000000
0.59899258293891, 0.24063620151638
0.80000000000000, 0.90000000000000
-0.03757070282964, -1.45599339578048
1.20000000000000, 1.30000000000000
2.00820463840944, 0.51554418239694
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary3.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=2, controlQubit=0
0.00000000000000, 0.10000000000000
-0.10007182446223, -1.27877406127345
0.40000000000000, 0.50000000000000
-0.10422240685393, -1.63178896018989
0.80000000000000, 0.90000000000000
0.77478814734832, 0.30728790554067
1.20000000000000, 1.30000000000000
1.47939417508358, 0.44474189598095
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary4.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=0, controlQubit=1
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.00405631396590, -0.66206581574289
0.86339781460184, 0.27603734472437
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
-0.00424485081749, -1.36809561357578
2.27260987007236, 0.55094532560494
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary5.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=1, controlQubit=1
-0.02719424685040, -0.57345614848937
-0.02926953804624, -0.74996359794759
0.24668956907128, 0.17190920629624
0.59899258293891, 0.24063620151638
-0.03549541163379, -1.27948594632226
-0.03757070282964, -1.45599339578048
1.65590162454181, 0.44681718717680
2.00820463840944, 0.51554418239694
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary6.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=2, controlQubit=1
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
-0.10214711565808, -1.45528151073167
-0.10422240685393, -1.63178896018989
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
1.12709116121595, 0.37601490076081
1.47939417508358, 0.44474189598095
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary7.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=0, controlQubit=2
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
-0.00009426842579, -1.01508071465933
1.56800384233710, 0.41349133516466
-0.00424485081749, -1.36809561357578
2.27260987007236, 0.55094532560494
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary8.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=1, controlQubit=2
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
-0.03549541163379, -1.27948594632226
-0.03757070282964, -1.45599339578048
1.65590162454181, 0.44681718717680
2.00820463840944, 0.51554418239694
9 changes: 9 additions & 0 deletions tests/unit/controlledCompactUnitary9.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=2, controlQubit=2
-0.09799653326639, -1.10226661181522
-0.10007182446223, -1.27877406127345
-0.10214711565808, -1.45528151073167
-0.10422240685393, -1.63178896018989
0.42248513348069, 0.23856091032053
0.77478814734832, 0.30728790554067
1.12709116121595, 0.37601490076081
1.47939417508358, 0.44474189598095
9 changes: 9 additions & 0 deletions tests/unit/controlledNot1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=0, controlQubit=0
0.20000000000000, 0.30000000000000
0.00000000000000, 0.10000000000000
0.60000000000000, 0.70000000000000
0.40000000000000, 0.50000000000000
1.00000000000000, 1.10000000000000
0.80000000000000, 0.90000000000000
1.40000000000000, 1.50000000000000
1.20000000000000, 1.30000000000000
9 changes: 9 additions & 0 deletions tests/unit/controlledNot2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=1, controlQubit=0
0.00000000000000, 0.10000000000000
0.60000000000000, 0.70000000000000
0.40000000000000, 0.50000000000000
0.20000000000000, 0.30000000000000
0.80000000000000, 0.90000000000000
1.40000000000000, 1.50000000000000
1.20000000000000, 1.30000000000000
1.00000000000000, 1.10000000000000
9 changes: 9 additions & 0 deletions tests/unit/controlledNot3.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=2, controlQubit=0
0.00000000000000, 0.10000000000000
1.00000000000000, 1.10000000000000
0.40000000000000, 0.50000000000000
1.40000000000000, 1.50000000000000
0.80000000000000, 0.90000000000000
0.20000000000000, 0.30000000000000
1.20000000000000, 1.30000000000000
0.60000000000000, 0.70000000000000
9 changes: 9 additions & 0 deletions tests/unit/controlledNot4.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=0, controlQubit=1
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.60000000000000, 0.70000000000000
0.40000000000000, 0.50000000000000
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
1.40000000000000, 1.50000000000000
1.20000000000000, 1.30000000000000
9 changes: 9 additions & 0 deletions tests/unit/controlledNot5.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=1, controlQubit=1
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
1.20000000000000, 1.30000000000000
1.40000000000000, 1.50000000000000
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
9 changes: 9 additions & 0 deletions tests/unit/controlledNot6.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=2, controlQubit=1
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
1.20000000000000, 1.30000000000000
1.40000000000000, 1.50000000000000
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
9 changes: 9 additions & 0 deletions tests/unit/controlledNot7.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=0, controlQubit=2
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
1.00000000000000, 1.10000000000000
0.80000000000000, 0.90000000000000
1.40000000000000, 1.50000000000000
1.20000000000000, 1.30000000000000
9 changes: 9 additions & 0 deletions tests/unit/controlledNot8.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=1, controlQubit=2
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
1.20000000000000, 1.30000000000000
1.40000000000000, 1.50000000000000
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
9 changes: 9 additions & 0 deletions tests/unit/controlledNot9.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, rotQubit=2, controlQubit=2
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
1.20000000000000, 1.30000000000000
1.40000000000000, 1.50000000000000
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
9 changes: 9 additions & 0 deletions tests/unit/filterOut1111.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# numQubits=3
0.0, 0.0
0.0, 0.0
0.0, 0.0
0.0, 0.0
0.0, 0.0
0.0, 0.0
0.0, 0.0
1.0, 0.0
9 changes: 9 additions & 0 deletions tests/unit/filterOut1111.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# numQubits=3
0.37796447300923, 0.00000000000000
0.37796447300923, 0.00000000000000
0.37796447300923, 0.00000000000000
0.37796447300923, 0.00000000000000
0.37796447300923, 0.00000000000000
0.37796447300923, 0.00000000000000
0.37796447300923, 0.00000000000000
0.00000000000000, 0.00000000000000
9 changes: 9 additions & 0 deletions tests/unit/hadamard1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=0
0.14142135623731, 0.28284271247462
-0.14142135623731, -0.14142135623731
0.70710678118655, 0.84852813742386
-0.14142135623731, -0.14142135623731
1.27279220613579, 1.41421356237309
-0.14142135623731, -0.14142135623731
1.83847763108502, 1.97989898732233
-0.14142135623731, -0.14142135623731
9 changes: 9 additions & 0 deletions tests/unit/hadamard2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=1
0.28284271247462, 0.42426406871193
0.56568542494924, 0.70710678118655
-0.28284271247462, -0.28284271247462
-0.28284271247462, -0.28284271247462
1.41421356237309, 1.55563491861040
1.69705627484771, 1.83847763108502
-0.28284271247462, -0.28284271247462
-0.28284271247462, -0.28284271247462
9 changes: 9 additions & 0 deletions tests/unit/hadamard3.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=2
0.56568542494924, 0.70710678118655
0.84852813742386, 0.98994949366117
1.13137084989848, 1.27279220613579
1.41421356237309, 1.55563491861040
-0.56568542494924, -0.56568542494924
-0.56568542494924, -0.56568542494924
-0.56568542494924, -0.56568542494924
-0.56568542494924, -0.56568542494924
17 changes: 17 additions & 0 deletions tests/unit/multiControlledUnitary1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# nQubits=4, initDebug, rotQubit=3, mask=q0,q2
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
0.80000000000000, 0.90000000000000
-0.24997756207760, -3.04242478575804
1.20000000000000, 1.30000000000000
-0.25412814446930, -3.39543968467448
1.60000000000000, 1.70000000000000
1.80000000000000, 1.90000000000000
2.00000000000000, 2.10000000000000
2.20000000000000, 2.30000000000000
2.40000000000000, 2.50000000000000
2.53559133163767, 0.71549929446982
2.80000000000000, 2.90000000000000
3.24019735937293, 0.85295328491011
17 changes: 17 additions & 0 deletions tests/unit/multiControlledUnitary2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# nQubits=4, initDebug, rotQubit=1, mask=q0,q2,q3
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
1.20000000000000, 1.30000000000000
1.40000000000000, 1.50000000000000
1.60000000000000, 1.70000000000000
1.80000000000000, 1.90000000000000
2.00000000000000, 2.10000000000000
2.20000000000000, 2.30000000000000
2.40000000000000, 2.50000000000000
-0.05417303239642, -2.86805299144626
2.80000000000000, 2.90000000000000
4.82662874935049, 1.06536014415807
9 changes: 9 additions & 0 deletions tests/unit/probOfFilterOut1111.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# numQubits=3
0.0, 0.0
0.0, 0.0
0.0, 0.0
0.0, 0.0
0.0, 0.0
0.0, 0.0
0.0, 0.0
1.0, 0.0
9 changes: 9 additions & 0 deletions tests/unit/sGate1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=0
0.00000000000000, 0.10000000000000
-0.30000000000000, 0.20000000000000
0.40000000000000, 0.50000000000000
-0.70000000000000, 0.60000000000000
0.80000000000000, 0.90000000000000
-1.10000000000000, 1.00000000000000
1.20000000000000, 1.30000000000000
-1.50000000000000, 1.40000000000000
9 changes: 9 additions & 0 deletions tests/unit/sGate2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=1
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
-0.50000000000000, 0.40000000000000
-0.70000000000000, 0.60000000000000
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
-1.30000000000000, 1.20000000000000
-1.50000000000000, 1.40000000000000
9 changes: 9 additions & 0 deletions tests/unit/sGate3.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=2
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
-0.90000000000000, 0.80000000000000
-1.10000000000000, 1.00000000000000
-1.30000000000000, 1.20000000000000
-1.50000000000000, 1.40000000000000
9 changes: 9 additions & 0 deletions tests/unit/tGate1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=0
0.00000000000000, 0.10000000000000
-0.07071067811865, 0.35355339059327
0.40000000000000, 0.50000000000000
-0.07071067811865, 0.91923881554251
0.80000000000000, 0.90000000000000
-0.07071067811865, 1.48492424049175
1.20000000000000, 1.30000000000000
-0.07071067811865, 2.05060966544099
9 changes: 9 additions & 0 deletions tests/unit/tGate2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=1
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
-0.07071067811865, 0.63639610306789
-0.07071067811865, 0.91923881554251
0.80000000000000, 0.90000000000000
1.00000000000000, 1.10000000000000
-0.07071067811865, 1.76776695296637
-0.07071067811865, 2.05060966544099
9 changes: 9 additions & 0 deletions tests/unit/tGate3.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nQubits=3, initDebug, qubit=2
0.00000000000000, 0.10000000000000
0.20000000000000, 0.30000000000000
0.40000000000000, 0.50000000000000
0.60000000000000, 0.70000000000000
-0.07071067811865, 1.20208152801713
-0.07071067811865, 1.48492424049175
-0.07071067811865, 1.76776695296637
-0.07071067811865, 2.05060966544099

0 comments on commit f895970

Please sign in to comment.