Device Models
Classes which represent physical devices or objects.
-
class ferrmion.devices.Qubit[source]
Bases: ABC
A qubit object which represents a physical qubit.
- Parameters:
label (int) – The qubit label.
gate_error (float) – The gate error rate.
t1 (float) – The T1 time.
t2 (float) – The T2 time.
-
gate_error: float
-
label: int
-
t1: float
-
t2: float
-
class ferrmion.devices.Toplogy(qubits: set[Qubit])[source]
Bases: object
A topology object which represents a physical device.
-
qubits
A set of qubits.
- Type:
set[Qubit]
-
connections
A dictionary of qubit connections.
- Type:
dict
-
add_connection(control, target, error)[source]
Add a connection between two qubits.
-
add_connection(control: Qubit, target: Qubit, error: float)[source]
Add a connection between two qubits.
- Parameters:
control (Qubit) – The control qubit.
target (Qubit) – The target qubit.
error (float) – The error rate of the connection.