Skip to content

Commit

Permalink
Fix godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
itsubaki committed Apr 19, 2024
1 parent 533836e commit ef555de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions q.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (q *Q) ZeroWith(n int) []Qubit {
return qb
}

// One returns n qubit in the one state.
// One returns n qubits in the one state.
func (q *Q) OneWith(n int) []Qubit {
qb := make([]Qubit, n)
for i := 0; i < n; i++ {
Expand All @@ -103,7 +103,7 @@ func (q *Q) OneWith(n int) []Qubit {
return qb
}

// ZeroLog2 returns n qubit in the zero state.
// ZeroLog2 returns n qubits in the zero state.
// n is greater than or equal to log2(N).
func (q *Q) ZeroLog2(N int) []Qubit {
n := int(math.Log2(float64(N))) + 1
Expand Down

0 comments on commit ef555de

Please sign in to comment.