kosmos.circuit_runner.qiskit_result¶
Functions¶
- calculate_expectation_values(counts: dict[str, int]) numpy.ndarray¶
Calculate Z-basis expectation values for each qubit from counts.
- job_expectation_values(job: qiskit_ibm_runtime.RuntimeJobV2) list[numpy.ndarray]¶
Calculate expectation values from job results.
- Parameters:
job (RuntimeJob) – The job to get results for.
- Returns:
- A list of arrays, where each array contains the expectation
values for one circuit in the job.
- Return type:
list[np.ndarray]