Skip to content

Commit

Permalink
Increase amplitude display sensitivity to decoherence by 10x
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Mar 24, 2019
1 parent 9d191b1 commit a0d11f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gates/AmplitudeDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ const AMPLITUDE_DRAWER_FROM_CUSTOM_STATS = GatePainting.makeDisplayDrawer(args =
let matrix = isIncoherent ? incoherentKet : ket;
let dw = args.rect.w - args.rect.h*ket.width()/ket.height();
let drawRect = args.rect.skipLeft(dw/2).skipRight(dw/2);
let indicatorAlpha = Math.min(1, Math.max(0, (quality - 0.999) / 0.001));
let indicatorAlpha = Math.min(1, Math.max(0, (quality - 0.9999) / 0.0001));
MathPainter.paintMatrix(
args.painter,
matrix,
Expand Down

0 comments on commit a0d11f9

Please sign in to comment.