Skip to content

Commit 0d7d4cd

Browse files
committed
Update test
1 parent d6a5bf0 commit 0d7d4cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

quantum/density/matrix_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func ExampleMatrix_Project() {
3838

3939
computationalBasis := []*qubit.Qubit{
4040
qubit.From("00"),
41+
qubit.From("01"),
42+
qubit.From("10"),
4143
qubit.From("11"),
4244
}
4345

@@ -56,6 +58,16 @@ func ExampleMatrix_Project() {
5658
// [(0+0i) (0+0i) (0+0i) (0+0i)]
5759
// [(0+0i) (0+0i) (0+0i) (0+0i)]
5860
// [(0+0i) (0+0i) (0+0i) (0+0i)]
61+
// [[01][ 1]( 1.0000 0.0000i): 1.0000]: 0.00
62+
// [(0+0i) (0+0i) (0+0i) (0+0i)]
63+
// [(0+0i) (0+0i) (0+0i) (0+0i)]
64+
// [(0+0i) (0+0i) (0+0i) (0+0i)]
65+
// [(0+0i) (0+0i) (0+0i) (0+0i)]
66+
// [[10][ 2]( 1.0000 0.0000i): 1.0000]: 0.00
67+
// [(0+0i) (0+0i) (0+0i) (0+0i)]
68+
// [(0+0i) (0+0i) (0+0i) (0+0i)]
69+
// [(0+0i) (0+0i) (0+0i) (0+0i)]
70+
// [(0+0i) (0+0i) (0+0i) (0+0i)]
5971
// [[11][ 3]( 1.0000 0.0000i): 1.0000]: 0.50
6072
// [(0+0i) (0+0i) (0+0i) (0+0i)]
6173
// [(0+0i) (0+0i) (0+0i) (0+0i)]

0 commit comments

Comments
 (0)