|
355 | 355 | " </TabItem>\n", |
356 | 356 | "</Tabs>\n", |
357 | 357 | "\n", |
358 | | - "Put simply, a single job returns a `PrimitiveResult` object and contains a list of one or more `PubResult`s. These `PubResult` objects then store the measurement data for each PUB that was submitted to the job.\n", |
| 358 | + "Put simply, a single job returns a `PrimitiveResult` object and contains a list of one or more `PubResult` objects. These `PubResult` objects then store the measurement data for each PUB that was submitted to the job.\n", |
359 | 359 | "\n", |
360 | 360 | "Each `PubResult` possesses different formats and attributes based on the type of primitive that was used for the job. The specifics are explained below.\n", |
361 | 361 | "\n", |
|
487 | 487 | "source": [ |
488 | 488 | "### Sampler output\n", |
489 | 489 | "\n", |
490 | | - "When a Sampler job is completed successfully, the returned [`PrimitiveResult`](/docs/api/qiskit/qiskit.primitives.PrimitiveResult) object contains a list of [`SamplerPubResult`](/docs/api/qiskit/qiskit.primitives.SamplerPubResult)s, one per PUB. The data bins of these `SamplerPubResult`s are dict-like objects that contain one `BitArray` per `ClassicalRegister` in the circuit.\n", |
| 490 | + "When a Sampler job is completed successfully, the returned [`PrimitiveResult`](/docs/api/qiskit/qiskit.primitives.PrimitiveResult) object contains a list of [`SamplerPubResult`](/docs/api/qiskit/qiskit.primitives.SamplerPubResult)s, one per PUB. The data bins of these `SamplerPubResult` objects are dict-like objects that contain one `BitArray` per `ClassicalRegister` in the circuit.\n", |
491 | 491 | "\n", |
492 | 492 | "The `BitArray` class is a container for ordered shot data. In more detail, it stores the sampled bitstrings as bytes inside a two-dimensional array. The left-most axis of this array runs over ordered shots, while the right-most axis runs over bytes.\n", |
493 | 493 | "\n", |
|
584 | 584 | "id": "514e0ac0-b42e-4f26-b608-c223dfed7915", |
585 | 585 | "metadata": {}, |
586 | 586 | "source": [ |
587 | | - "When a circuit contains more than one classical register, the results are stored in different `BitArray`s. The following example modifies the previous snippet by splitting the classical register into two distinct registers:" |
| 587 | + "When a circuit contains more than one classical register, the results are stored in different `BitArray` objects. The following example modifies the previous snippet by splitting the classical register into two distinct registers:" |
588 | 588 | ] |
589 | 589 | }, |
590 | 590 | { |
|
636 | 636 | "id": "a65c6078-c5c2-4087-b57a-5680148ce333", |
637 | 637 | "metadata": {}, |
638 | 638 | "source": [ |
639 | | - "#### Leveraging `BitArray`s for performant post-processing\n", |
| 639 | + "#### Leveraging `BitArray` objects for performant post-processing\n", |
640 | 640 | "\n", |
641 | | - "Since arrays generally offer better performance compared to dictionaries, it is advisable to perform any post-processing directly on the `BitArray`s rather than on dictionaries of counts. The `BitArray` class offers a range of methods to perform some common post-processing operations:" |
| 641 | + "Since arrays generally offer better performance compared to dictionaries, it is advisable to perform any post-processing directly on the `BitArray` objects rather than on dictionaries of counts. The `BitArray` class offers a range of methods to perform some common post-processing operations:" |
642 | 642 | ] |
643 | 643 | }, |
644 | 644 | { |
|
0 commit comments