entInfoHeader

class cqc.entInfoHeader.EntInfoHeader(headerBytes=None)[source]

Header for a entanglement information packet. Fo

__init__(headerBytes=None)[source]

Initialize using values received from a packet, if available.

switch_nodes()[source]

Switches the ip and port of the nodes and flips the directionality flag. Used to give correct message to both nodes.

class cqc.entInfoHeader.EntInfoCreateKeepHeader(headerBytes=None)[source]

Header for a entanglement information packet, where entanglement is kept after generation

switch_nodes()[source]

Switches the ip and port of the nodes and flips the directionality flag. Used to give correct message to both nodes.

class cqc.entInfoHeader.EntInfoMeasDirectHeader(headerBytes=None)[source]

Header for a entanglement information packet, where communication qubit is measured directly after emission.

switch_nodes()[source]

Switches the ip and port of the nodes and flips the directionality flag. Used to give correct message to both nodes.