Skip to content

Commit 232d4ed

Browse files
authored
Update q_test.go
1 parent 2af7338 commit 232d4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

q_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ func Example_ecc() {
10601060
fmt.Println(s)
10611061
}
10621062

1063-
// encoding
1063+
// encode
10641064
q1 := qsim.Zero()
10651065
q2 := qsim.Zero()
10661066
qsim.CNOT(q0, q1)
@@ -1096,7 +1096,7 @@ func Example_ecc() {
10961096
qsim.CondX(m3.IsOne() && m4.IsOne(), q1)
10971097
qsim.CondX(m3.IsZero() && m4.IsOne(), q2)
10981098

1099-
// decoding
1099+
// decode
11001100
qsim.CNOT(q0, q2)
11011101
qsim.CNOT(q0, q1)
11021102

0 commit comments

Comments
 (0)