Package org.redfx.strangefx.ui
Class PartialGate
- java.lang.Object
-
- org.redfx.strange.gate.SingleQubitGate
-
- org.redfx.strangefx.ui.PartialGate
-
- All Implemented Interfaces:
org.redfx.strange.Gate
public class PartialGate extends org.redfx.strange.gate.SingleQubitGate- Author:
- johan
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartialGate.ControlQubit
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGROUP_PARTIAL
-
Constructor Summary
Constructors Constructor Description PartialGate(int idx)PartialGate(PartialGate.ControlQubit cq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCaption()java.lang.StringgetGroup()org.redfx.strange.Complex[][]getMatrix()-
Methods inherited from class org.redfx.strange.gate.SingleQubitGate
getAffectedQubitIndexes, getHighestAffectedQubitIndex, getMainQubitIndex, getName, getSize, setAdditionalQubit, setInverse, setMainQubitIndex, toString
-
-
-
-
Field Detail
-
GROUP_PARTIAL
public static final java.lang.String GROUP_PARTIAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PartialGate
public PartialGate(int idx)
-
PartialGate
public PartialGate(PartialGate.ControlQubit cq)
-
-
Method Detail
-
getMatrix
public org.redfx.strange.Complex[][] getMatrix()
- Specified by:
getMatrixin interfaceorg.redfx.strange.Gate- Specified by:
getMatrixin classorg.redfx.strange.gate.SingleQubitGate
-
getCaption
public java.lang.String getCaption()
- Specified by:
getCaptionin interfaceorg.redfx.strange.Gate- Overrides:
getCaptionin classorg.redfx.strange.gate.SingleQubitGate
-
getGroup
public java.lang.String getGroup()
- Specified by:
getGroupin interfaceorg.redfx.strange.Gate- Overrides:
getGroupin classorg.redfx.strange.gate.SingleQubitGate
-
-