Skip to content

Commit e605f5d

Browse files
committed
Fix the type error in the Shor tutorial notebook
The constructor of ModularExp expects integer or sequence of integer instead of qubit. If the reader uncomment this line and execute, it will raise a type error.
1 parent 82d2cdc commit e605f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/experiments/shor.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@
664664
"x = 5\n",
665665
"\n",
666666
"# Display (part of) the unitary. Uncomment if n is small enough.\n",
667-
"# cirq.unitary(ModularExp(target, exponent, x, n))"
667+
"# cirq.unitary(ModularExp([2] * L, [2] * (2 * L * 3), x, n))"
668668
]
669669
},
670670
{

0 commit comments

Comments
 (0)