File tree 2 files changed +4
-4
lines changed
qualtran/bloqs/arithmetic
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 361
361
},
362
362
"source" : [
363
363
" ## `LessThanConstant`\n " ,
364
- " Applies U_a|x>|z> = |x> |z ^ (x < a)> "
364
+ " Applies $ U_a\\ ket{x} \\ ket{z} \\ rightarrow \\ ket{x} \\ ket{z \\ oplus (x < a)}$ "
365
365
]
366
366
},
367
367
{
676
676
},
677
677
"source" : [
678
678
" ## `LessThanEqual`\n " ,
679
- " Applies U|x>|y>|z> = |x>|y> |z ^ (x <= y)> \n " ,
679
+ " Applies $U \\ ket{x} \\ ket{y} \\ ket{z} \\ rightarrow \\ ket{x} \\ ket{y} \\ ket{z \\ oplus (x \\ leq y)}$ \n " ,
680
680
" \n " ,
681
681
" Decomposes the gate in a T-complexity optimal way.\n " ,
682
682
" \n " ,
Original file line number Diff line number Diff line change 67
67
68
68
@frozen
69
69
class LessThanConstant (GateWithRegisters , cirq .ArithmeticGate ): # type: ignore[misc]
70
- """Applies U_a|x>|z> = |x> |z ^ (x < a)> """
70
+ r """Applies $ U_a\ket{x}\ket{z} \rightarrow \ket{x} \ket{z \oplus (x < a)}$ """
71
71
72
72
bitsize : SymbolicInt
73
73
less_than_val : SymbolicInt
@@ -406,7 +406,7 @@ def _equality_with_zero(
406
406
407
407
@frozen
408
408
class LessThanEqual (GateWithRegisters , cirq .ArithmeticGate ): # type: ignore[misc]
409
- """Applies U|x>|y>|z> = |x>|y> |z ^ (x <= y)>
409
+ r """Applies $U\ket{x}\ket{y}\ket{z} \rightarrow \ket{x} \ket{y} \ket{z \oplus (x \leq y)}$
410
410
411
411
Decomposes the gate in a T-complexity optimal way.
412
412
You can’t perform that action at this time.
0 commit comments