cqcHeader¶
-
class
cqc.cqcHeader.
Header
(headerBytes=None)[source]¶ Abstact class for headers. Should be subclassed
-
__init__
(headerBytes=None)[source]¶ Initialize using values received from a packet. Don’t override this but rather _setVals
-
setVals
(*args, **kwargs)[source]¶ Set using given values. Don’t override this but rather _setVals
- Returns
None
-
-
class
cqc.cqcHeader.
CQCTypeHeader
(headerBytes=None)[source]¶ Definition of the CQC Type header. This header announces the type of the headers that will follow.
-
class
cqc.cqcHeader.
CQCCmdHeader
(headerBytes=None)[source]¶ Header for a command instruction packet.
-
class
cqc.cqcHeader.
CQCAssignHeader
(headerBytes=None)[source]¶ Sub header that follows a CMD Measure header. It contains the reference id which can be used to refer to the measurement outcome
-
class
cqc.cqcHeader.
CQCXtraHeader
(headerBytes=None)[source]¶ Optional addtional cmd header information. Only relevant for certain commands.
-
class
cqc.cqcHeader.
CQCSequenceHeader
(headerBytes=None)[source]¶ Header used to indicate size of a sequence. Currently exactly the same as CQCRotationHeaer. Seperate classes used clearity and for possible future adaptability. (Increase length for example)
-
class
cqc.cqcHeader.
CQCRotationHeader
(headerBytes=None)[source]¶ Header used to define the rotation angle of a gate
-
class
cqc.cqcHeader.
CQCXtraQubitHeader
(headerBytes=None)[source]¶ Header used to send qubit of a secondary qubit for two qubit gates
-
class
cqc.cqcHeader.
CQCCommunicationHeader
(headerBytes=None, cqc_version=2)[source]¶ Header used to send information to which node to send information to. Used for example in Send and EPR commands This header has a size of 8
-
class
cqc.cqcHeader.
CQCFactoryHeader
(headerBytes=None)[source]¶ Header used to send factory information
-
class
cqc.cqcHeader.
CQCNotifyHeader
(headerBytes=None)[source]¶ Header used to specify notification details.
-
class
cqc.cqcHeader.
CQCMeasOutHeader
(headerBytes=None)[source]¶ Header used to send a measurement outcome.