Class PseudoGate

  • All Implemented Interfaces:
    org.redfx.strange.Gate
    Direct Known Subclasses:
    ProbabilitiesGate

    public class PseudoGate
    extends java.lang.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 Detail

      • PseudoGate

        public PseudoGate()
    • Method Detail

      • 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 java.util.List<java.lang.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 java.lang.String getCaption()
        Specified by:
        getCaption in interface org.redfx.strange.Gate
      • getName

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

        public java.lang.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