From 4cbf0ac2b49c6122197f761df56dcde18a255118 Mon Sep 17 00:00:00 2001 From: Craig Gidney Date: Mon, 12 Aug 2019 04:10:27 -0300 Subject: [PATCH] Fix tooltip for detectors getting click state wrong --- src/gates/Detector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gates/Detector.js b/src/gates/Detector.js index 857a7926..855b0cc3 100644 --- a/src/gates/Detector.js +++ b/src/gates/Detector.js @@ -396,8 +396,8 @@ function makeDetectControlClearGate(axis) { function makeDetector(axis) { let state = new Map([ ['X', '|0⟩-|1⟩'], - ['Y', '|0⟩+i|1⟩'], - ['Z', '|0⟩'], + ['Y', '|0⟩-i|1⟩'], + ['Z', '|1⟩'], ]).get(axis); let builder = new GateBuilder(). setSerializedIdAndSymbol(`${axis}Detector`).