QGates classes (quanguru.classes.QGates)#

Contains protocol/step objects for gate operations.

SpinRotation(**kwargs)

xGate(**kwargs)

Function Name

Docstrings

Unit Tests

Tutorials

SpinRotation

      ❌

    ❌

    ❌

xGate

      ❌

    ❌

    ❌

class SpinRotation(**kwargs)[source]#

Bases: Gate

label: str = 'SpinRotation'#

(class attribute) class label used in default naming

_internalInstances: int = 0#

(class attribute) number of instances created internally by the library

_externalInstances: int = 0#

(class attribute) number of instances created explicitly by the user

_instances: int = 0#

(class attribute) number of total instances = _internalInstances + _externalInstances

__angle#
__rotationAxis#
_rotationOp#
phase#
property angle#
property rotationAxis#
_rotMat(collapseOps=None, decayRates=None, openSys=False)[source]#
__firstlineno__ = 30#
__static_attributes__ = ('__angle', '__rotationAxis', '_paramBoundBase__matrix', '_paramBoundBase__paramUpdated', '_rotationOp', 'createUnitary', 'phase')#
class xGate(**kwargs)[source]#

Bases: SpinRotation

label: str = 'xGate'#

(class attribute) class label used in default naming

_internalInstances: int = 0#

(class attribute) number of instances created internally by the library

_externalInstances: int = 0#

(class attribute) number of instances created explicitly by the user

_instances: int = 0#

(class attribute) number of total instances = _internalInstances + _externalInstances

__firstlineno__ = 86#
__static_attributes__ = ('_paramBoundBase__matrix', '_paramBoundBase__paramUpdated', 'createUnitary', 'rotationAxis')#
instantFlip(openSys=False)[source]#
_gateImplements(collapseOps=None, decayRates=None)[source]#