topqad_sdk.models package
Module contents
- class topqad_sdk.models.Circuit(id: str, status: str, circuit_name: str, client=None)[source]
A Circuit class representing a quantum circuit.
- Parameters:
id (str) – ID of the circuit.
status (str) – Status of the circuit.
circuit_name (str) – Name of the circuit.
- id
ID of the circuit.
- Type:
str
- status
Status of the circuit.
- Type:
str
- circuit_name
Name of the circuit.
- Type:
str
- property as_dict: dict
Return a dictionary representation of the Circuit object.
- Returns:
Dictionary with circuit fields.
- Return type:
dict
- property circuit_path: str
Fetch and return the circuit_path for this circuit.
- Returns:
The circuit file path.
- Return type:
str
- Raises:
TopQADError – If the circuit cannot be retrieved.
- class topqad_sdk.models.LiteCircuit(num_qubits: int, num_operations: int, circuit_name: str = None)[source]
A lite circuit class.
The LiteCircuit class provides a basic structure for representing quantum circuits with only two parameters for just resource estimation.
- Parameters:
num_qubits (int) – The number of qubits in the circuit. Must be between 1 and 1,000,000,000.
num_operations (int) – The number of operations in the circuit. Must be between 1 and 1e20.
- Raises:
ValueError – If num_qubits or num_operations are not within their valid ranges or are not integers.
- num_qubits
The number of qubits in the circuit.
- Type:
int
- num_operations
The number of operations in the circuit.
- Type:
int