Package org.redfx.strangefx.ui
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGroup()intintorg.redfx.strange.Complex[][]getName()intgetSize()voidsetAdditionalQubit(int idx, int cnt)voidsetInverse(boolean inv)voidsetMainQubitIndex(int idx)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.redfx.strange.Gate
applyOptimize, getMatrix, hasOptimization
-
Constructor Details
-
PseudoGate
public PseudoGate()
-
-
Method Details
-
setMainQubitIndex
public void setMainQubitIndex(int idx)- Specified by:
setMainQubitIndexin interfaceorg.redfx.strange.Gate
-
getMainQubitIndex
public int getMainQubitIndex()- Specified by:
getMainQubitIndexin interfaceorg.redfx.strange.Gate
-
setAdditionalQubit
public void setAdditionalQubit(int idx, int cnt)- Specified by:
setAdditionalQubitin interfaceorg.redfx.strange.Gate
-
getAffectedQubitIndexes
- Specified by:
getAffectedQubitIndexesin interfaceorg.redfx.strange.Gate
-
getHighestAffectedQubitIndex
public int getHighestAffectedQubitIndex()- Specified by:
getHighestAffectedQubitIndexin interfaceorg.redfx.strange.Gate
-
getCaption
- Specified by:
getCaptionin interfaceorg.redfx.strange.Gate
-
getName
- Specified by:
getNamein interfaceorg.redfx.strange.Gate
-
getGroup
- Specified by:
getGroupin interfaceorg.redfx.strange.Gate
-
getMatrix
public org.redfx.strange.Complex[][] getMatrix()- Specified by:
getMatrixin interfaceorg.redfx.strange.Gate
-
getSize
public int getSize()- Specified by:
getSizein interfaceorg.redfx.strange.Gate
-
setInverse
public void setInverse(boolean inv)- Specified by:
setInversein interfaceorg.redfx.strange.Gate
-