kosmos.quantum_logic.qubit

Classes

class QubitId

Identifier of a qubit.

value

Identifier string.

Type:

str


class QubitType(*args, **kwds)

Bases: enum.Enum

Type of qubit based on its intended use.


class Qubit(qid: QubitId, node: kosmos.topology.node.QuantumNode, qubit_type: QubitType)

Representation of a physical qubit in the network.

Initialize with input validation.

Parameters:
  • qid (QubitId) – Unique qubit identifier.

  • node (QuantumNode) – The quantum node where this qubit is located.

  • qubit_type (QubitType) – Type of the qubit.


Properties

property qid

Qubit ID (read-only).

property node

Qubit’s node.

property qubit_type

Qubit’s type.