kosmos.protocols.protocol_result

Classes

class ProtocolResult[source]

Bases: abc.ABC

Result of protocol execution.

status

Status of the protocol.

Type:

ProtocolStatus


class CommunicationProtocolResult[source]

Bases: ProtocolResult

Communication protocol result.

status

Status of the protocol.

Type:

ProtocolStatus

execution_time

Required time to generate entanglement.

Type:

int | None


class RoutingProtocolResult[source]

Bases: ProtocolResult

Routing protocol result.

status

Status of the protocol.

Type:

ProtocolStatus

path

Resulting path of the routing protocol. None if no path was found.

Type:

Path | None

total_cost

Total cost of the resulting path. None if no path was found.

Type:

float | None

total_distance

Total distance of the resulting path. None if no path was found.

Type:

float | None


class CircuitExecutionProtocolResult[source]

Bases: ProtocolResult

Circuit execution protocol result.

status

Status of the protocol.

Type:

ProtocolStatus

execution_time

Time (in picoseconds) taken to complete the operation. Defaults to 0.

Type:

int

density_matrix

Density matrix at the end of the circuit. Defaults to None.

Type:

np.ndarray | None