Skip to content

Commit 20cc632

Browse files
committed
fixed literals for result types
1 parent 214fccc commit 20cc632

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

example_plugin/interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
from abc import ABC, abstractmethod
66
import os
7-
from typing import List, Dict, Any
7+
from typing import List, Dict, Any, Literal
88
from .config import AVAILABLE_RESULT_TYPES
99

1010
Backend = str
1111
Backends = List[Backend]
1212
Metadata = Dict[Any, Any]
13-
ResultType = str
13+
ResultType = Literal['counts', 'quasi_dist', 'expval']
1414
QasmFilePath = str
1515
Results = Dict[str | int, float] | List[float]
1616

0 commit comments

Comments
 (0)