File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 .
511511func (q * Qubit ) ControlledR (theta float64 , control []int , target int ) * Qubit {
512512 n := q .NumQubits ()
513513
You can’t perform that action at this time.
0 commit comments