Class PseudoGate

java.lang.Object
org.redfx.strangefx.ui.PseudoGate
All Implemented Interfaces:
org.redfx.strange.Gate
Direct Known Subclasses:
ProbabilitiesGate

public class PseudoGate
extends Object
implements org.redfx.strange.Gate
A special implementation of a Gate that is not altering the probability vector, but that is used in rendering.
Author:
johan
  • Constructor Details

    • PseudoGate

      public PseudoGate()
  • Method Details

    • setMainQubitIndex

      public void setMainQubitIndex(int idx)
      Specified by:
      setMainQubitIndex in interface org.redfx.strange.Gate
    • getMainQubitIndex

      public int getMainQubitIndex()
      Specified by:
      getMainQubitIndex in interface org.redfx.strange.Gate
    • setAdditionalQubit

      public void setAdditionalQubit(int idx, int cnt)
      Specified by:
      setAdditionalQubit in interface org.redfx.strange.Gate
    • getAffectedQubitIndexes

      public List<Integer> getAffectedQubitIndexes()
      Specified by:
      getAffectedQubitIndexes in interface org.redfx.strange.Gate
    • getHighestAffectedQubitIndex

      public int getHighestAffectedQubitIndex()
      Specified by:
      getHighestAffectedQubitIndex in interface org.redfx.strange.Gate
    • getCaption

      public String getCaption()
      Specified by:
      getCaption in interface org.redfx.strange.Gate
    • getName

      public String getName()
      Specified by:
      getName in interface org.redfx.strange.Gate
    • getGroup

      public String getGroup()
      Specified by:
      getGroup in interface org.redfx.strange.Gate
    • getMatrix

      public org.redfx.strange.Complex[][] getMatrix()
      Specified by:
      getMatrix in interface org.redfx.strange.Gate
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.redfx.strange.Gate
    • setInverse

      public void setInverse(boolean inv)
      Specified by:
      setInverse in interface org.redfx.strange.Gate