Skip to content

Commit f24da4e

Browse files
committed
Fix typo
1 parent 0e80796 commit f24da4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

quantum/qubit/qubit.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ func (q *Qubit) CZ(control, target int) *Qubit {
355355
return q.ControlledZ([]int{control}, target)
356356
}
357357

358-
// CR applies a controlled rotation around the Z-axis.
359-
func (q *Qubit) CR(thehta float64, control, target int) *Qubit {
360-
return q.ControlledR(thehta, []int{control}, target)
358+
// CR applies a controlled rotation gate.
359+
func (q *Qubit) CR(theta float64, control, target int) *Qubit {
360+
return q.ControlledR(theta, []int{control}, target)
361361
}
362362

363363
// Controlled applies a controlled 2x2 unitary gate U to the target qubit.
@@ -507,7 +507,7 @@ func (q *Qubit) ControlledZ(control []int, target int) *Qubit {
507507
return q
508508
}
509509

510-
// ControlledR applies a controlled rotation around the Z-axis.
510+
// ControlledR applies a controlled rotation gate.
511511
func (q *Qubit) ControlledR(theta float64, control []int, target int) *Qubit {
512512
n := q.NumQubits()
513513

0 commit comments

Comments
 (0)