You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove attribute power and default to Power/GateWithRegisters.__pow__ (#903)
* Remove attribute `power` and default to `Power`/`GateWithRegisters.__pow__`
* add test for `Power`
* add circuit diagram info for `Power`
* lint
* fix infinite loop
* check if `Power.power` is an integer
* use `(0)` for 0-control (consistent with cirq)
* `Power` cirq diagram: put exponent on every register
* fix test
* add diagram tests for controlled
* fix doc in notebook
" - `control_val`: If 0/1, a controlled version of the walk operator is constructed. Defaults to None, in which case the resulting walk operator is not controlled.\n",
59
-
" - `power`: Constructs $W^{power}$ by repeatedly decomposing into `power` copies of $W$. Defaults to 1. \n",
58
+
" - `control_val`: If 0/1, a controlled version of the walk operator is constructed. Defaults to None, in which case the resulting walk operator is not controlled. \n",
60
59
"\n",
61
60
"#### References\n",
62
61
" - [Encoding Electronic Spectra in Quantum Circuits with Linear T Complexity] (https://arxiv.org/abs/1805.03662). Babbush et. al. (2018). Figure 1.\n"
0 commit comments