Skip to content

Commit

Permalink
Fix tooltip for detectors getting click state wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Aug 12, 2019
1 parent da22e11 commit 4cbf0ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gates/Detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down

0 comments on commit 4cbf0ac

Please sign in to comment.