Skip to content

Commit

Permalink
[QI2-1361] Hybrid raw data
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythir committed Jan 23, 2025
1 parent e17b3f7 commit ca4db38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qi2_shared/hybrid/quantum_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""

from abc import ABC, abstractmethod
from typing import Any, Dict, List
from typing import Any, Dict, List, Optional

from compute_api_client.models.backend_type import BackendType
from pydantic import BaseModel
Expand All @@ -22,7 +22,8 @@
class ExecuteCircuitResult(BaseModel):
"""Result of executing a quantum circuit."""

results: Dict[str, float]
results: Dict[str, int]
raw_data: Optional[List[str]]
shots_requested: int
shots_done: int

Expand All @@ -38,7 +39,7 @@ class QuantumInterface(ABC):

@abstractmethod
def execute_circuit(
self, circuit: str, number_of_shots: int
self, circuit: str, number_of_shots: int, raw_data_enabled: bool = False
) -> ExecuteCircuitResult:
"""Execute a quantum circuit."""
raise NotImplementedError

0 comments on commit ca4db38

Please sign in to comment.