Module QuantumPathQSOAPySDK.circuit.gates.gates
Classes
class ArgumentGate (symbol: str, controllable: bool, position: int, argument)
-
Create SingleGate.
Ancestors
- SingleGate
- QuantumPathQSOAPySDK.circuit.gates.gates.__QuantumGate
Subclasses
Methods
def getArgument(self)
-
Get gate argument.
Prerequisites
- None.
Output
str | int | float
Inherited members
class ControlledGate (symbol: str, controllable: bool, controlPositions: list, targetPosition: int)
-
Create ControlledGate.
Ancestors
- QuantumPathQSOAPySDK.circuit.gates.gates.__QuantumGate
Subclasses
Methods
def getControlPositions(self) ‑> list
-
Get control positions.
Prerequisites
- None.
Output
list
def getControlSymbol(self) ‑> str
-
Get control symbol.
Prerequisites
- None.
Output
str
def getTargetPosition(self) ‑> int
-
Get target position or positions.
Prerequisites
- None.
Output
int | list
class MultipleGate (symbol: str, controllable: bool, positions: int)
-
Create SingleGate.
Ancestors
- QuantumPathQSOAPySDK.circuit.gates.gates.__QuantumGate
Subclasses
Methods
def getPositions(self) ‑> list
-
Get gate positions.
Prerequisites
- None.
Output
list
class SingleGate (symbol: str, controllable: bool, position: int)
-
Create SingleGate.
Ancestors
- QuantumPathQSOAPySDK.circuit.gates.gates.__QuantumGate
Subclasses
- HGate
- XGate
- YGate
- ZGate
- ArgumentGate
- MeasureGate
- I_SGate
- I_SXGate
- I_SYGate
- I_TGate
- I_TXGate
- I_TYGate
- SGate
- SXGate
- SYGate
- TGate
- TXGate
- TYGate
- Barrier
- EndRepeat
Methods
def getPosition(self) ‑> int
-
Get gate position.
Prerequisites
- None.
Output
int