Skip to content

Commit

Permalink
add Optional[] for CircuitInfo fields w/ default None
Browse files Browse the repository at this point in the history
  • Loading branch information
araghukas committed Sep 12, 2023
1 parent a0ca914 commit 67c497b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions covalent/quantum/qserver/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@


class CircuitInfo(BaseModel):
electron_node_id: int = None
dispatch_id: str = None
circuit_name: str = None
electron_node_id: Optional[int] = None
dispatch_id: Optional[str] = None
circuit_name: Optional[str] = None
circuit_description: Optional[str] = None
circuit_diagram: str = None
qnode_specs: Union[Dict[str, Any], QNodeSpecs] = None
qexecutor: BaseQExecutor = None
circuit_diagram: Optional[str] = None
qnode_specs: Optional[Union[Dict[str, Any], QNodeSpecs]] = None
qexecutor: Optional[BaseQExecutor] = None
save_time: datetime.datetime
circuit_id: str = None
qscript: str = None
execution_time: float = None
result: List[Any] = None
result_metadata: List[Dict[str, Any]] = None
circuit_id: Optional[str] = None
qscript: Optional[str] = None
execution_time: Optional[float] = None
result: Optional[List[Any]] = None
result_metadata: Optional[List[Dict[str, Any]]] = None


@lru_cache
Expand Down

0 comments on commit 67c497b

Please sign in to comment.