@@ -105,14 +105,6 @@ def submit(self, session_id: str) -> None:
105105 parameters = computation_parameters_json ,
106106 ).id
107107
108- def __to_cirq_result (self , program_result : QuantumProgramResult ) -> "cirq.Result" :
109- try :
110- import cirq
111- except :
112- raise Exception ("Cannot get Cirq result: Cirq not installed" )
113-
114- return program_result .to_cirq_result ()
115-
116108 def __to_qiskit_result (self , program_result : QuantumProgramResult ) -> Result :
117109 status = self .status ()
118110
@@ -129,23 +121,16 @@ def result(
129121 self ,
130122 timeout = None ,
131123 fetch_interval : int = 3 ,
132- format : str = "qiskit" ,
133- ) -> Union [Result , List [Result ], "cirq.Result" ]:
124+ ) -> Union [Result , List [Result ]]:
134125 if self ._job_id == None :
135126 raise JobError ("Job ID error" )
136-
137- match = {
138- "qiskit" : self .__to_qiskit_result ,
139- "cirq" : self .__to_cirq_result ,
140- }
141-
142127 job_results = self ._wait_for_result (timeout , fetch_interval )
143128
144- conv_method = match .get (format , self .__to_qiskit_result )
145-
146129 program_results = list (
147130 map (
148- lambda r : conv_method (self ._extract_payload_from_response (r )),
131+ lambda r : self .__to_qiskit_result (
132+ self ._extract_payload_from_response (r )
133+ ),
149134 job_results ,
150135 )
151136 )
0 commit comments