Skip to content

Commit cec03b0

Browse files
committed
doc: update docs, clean up
1 parent 4414820 commit cec03b0

File tree

1 file changed

+4
-6
lines changed
  • mpqp/execution/providers

1 file changed

+4
-6
lines changed

mpqp/execution/providers/ibm.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ def run_remote_ibm(job: Job) -> BatchResult | Result:
597597
assert isinstance(job.device, IBMDevice)
598598

599599
return extract_result(ibm_result, job, job.device)
600-
# TODO: update this to take into account the case when we have list of Observables
601600

602601

603602
@typechecked
@@ -818,13 +817,12 @@ def get_result_from_ibm_job_id(job_id: str) -> Result | BatchResult:
818817

819818

820819
def extract_samples(job: Job, result: QiskitResult) -> list[Sample]:
821-
"""
822-
TODO comment
820+
"""Extracts measurement samples from the execution results.
823821
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.
826824
827-
Returns:
825+
Returns: A list of sample objects representing measurement outcomes.
828826
829827
"""
830828
counts = result.get_counts(0)

0 commit comments

Comments
 (0)