Skip to content

Commit c18efda

Browse files
committed
Merge branch 'main' of https://github.com/itsubaki/q
2 parents 0aca8ea + 232d4ed commit c18efda

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
@@ -1061,7 +1061,7 @@ func Example_ecc() {
10611061
fmt.Println(s)
10621062
}
10631063

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

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

0 commit comments

Comments
 (0)