Skip to content

Commit

Permalink
Update multiplication gate tooltips to note that irreversibiltiy is c…
Browse files Browse the repository at this point in the history
…aused by even-ness
  • Loading branch information
Strilanc committed Jul 7, 2017
1 parent 626d869 commit d710ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gates/MultiplicationGates.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ MultiplicationGates.TimesAFamily = Gate.buildFamily(1, 16, (span, builder) => bu
setSymbol("×A").
setTitle("Multiplication Gate").
setBlurb("Multiplies the target by input A.\n" +
"No effect if the multiplication would be irreversible.").
"No effect if the input is even (would be irreversible).").
setRequiredContextKeys("Input Range A").
setActualEffectToShaderProvider(ctx => MULTIPLICATION_SHADER.withArgs(...ketArgs(ctx, span, ['A']))).
setKnownEffectToParametrizedPermutation((x, a) => modularMultiply(x, a, 1<<span)));
Expand All @@ -52,7 +52,7 @@ MultiplicationGates.TimesAInverseFamily = Gate.buildFamily(1, 16, (span, builder
setSymbol("×A^-1").
setTitle("Inverse Multiplication Gate").
setBlurb("Inverse-multiplies the target by input A (modulo 2^n).\n" +
"No effect if the multiplication would be irreversible.").
"No effect if the input is even (would be irreversible).").
setRequiredContextKeys("Input Range A").
setKnownEffectToParametrizedPermutation((x, a) => modularUnmultiply(x, a, 1<<span)).
setActualEffectToShaderProvider(ctx => INVERSE_MULTIPLICATION_SHADER.withArgs(...ketArgs(ctx, span, ['A']))));
Expand Down

0 comments on commit d710ae0

Please sign in to comment.