Commit cec03b0 1 parent 4414820 commit cec03b0 Copy full SHA for cec03b0
File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,6 @@ def run_remote_ibm(job: Job) -> BatchResult | Result:
597
597
assert isinstance (job .device , IBMDevice )
598
598
599
599
return extract_result (ibm_result , job , job .device )
600
- # TODO: update this to take into account the case when we have list of Observables
601
600
602
601
603
602
@typechecked
@@ -818,13 +817,12 @@ def get_result_from_ibm_job_id(job_id: str) -> Result | BatchResult:
818
817
819
818
820
819
def extract_samples (job : Job , result : QiskitResult ) -> list [Sample ]:
821
- """
822
- TODO comment
820
+ """Extracts measurement samples from the execution results.
823
821
Args:
824
- job:
825
- result:
822
+ job: ``MPQP`` job used to generate the run. Enables a more complete result.
823
+ result: Result returned by IBM after running of the job.
826
824
827
- Returns:
825
+ Returns: A list of sample objects representing measurement outcomes.
828
826
829
827
"""
830
828
counts = result .get_counts (0 )
You can’t perform that action at this time.
0 commit comments