Skip to content

Commit

Permalink
aer has v2 primitives now (#1423)
Browse files Browse the repository at this point in the history
closes #1422

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
  • Loading branch information
beckykd and Eric-Arellano authored May 29, 2024
1 parent 2974d28 commit 1a9a9ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/verify/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For general quantum circuits, the following tools are available to verify your q

- For simulating circuits when using Qiskit Runtime, use its [local testing mode.](local-testing-mode)
- For exact simulation of small quantum circuits, you can use the reference primitives included with Qiskit. See [Exact simulation with Qiskit primitives](simulate-with-qiskit-primitives).
- For higher-performance simulation that can handle larger circuits, or to incorporate noise models into your simulation, use [Qiskit Aer](https://qiskit.org/ecosystem/aer/), a project that is part of the [Qiskit Ecosystem](https://qiskit.github.io/ecosystem/). See [Exact and noisy simulation with Qiskit Aer primitives](simulate-with-qiskit-aer) (V1 primitive support only). For V2 primitive support, use the [Qiskit Runtime local testing mode](local-testing-mode) with a Qiskit Aer backend.
- For higher-performance simulation that can handle larger circuits, or to incorporate noise models into your simulation, use [Qiskit Aer](https://qiskit.org/ecosystem/aer/), a project that is part of the [Qiskit Ecosystem](https://qiskit.github.io/ecosystem/). See [Exact and noisy simulation with Qiskit Aer primitives](simulate-with-qiskit-aer).
- To build custom noise models, use the [`noise`](https://qiskit.org/ecosystem/aer/apidocs/aer_noise.html) module of Qiskit Aer. See [Building noise models](building_noise_models).

## Hardware considerations
Expand Down
6 changes: 5 additions & 1 deletion docs/verify/local-testing-mode.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
"source": [
"Local testing mode (available with `qiskit-ibm-runtime` 0.22.0 or later) can be used to help develop and test programs before fine-tuning them and sending them to real quantum hardware. After using local testing mode to verify your program, all you need to change is the backend name to run it on an IBM Quantum system.\n",
"\n",
"To use local testing mode, specify one of the fake backends from ``qiskit_ibm_runtime.fake_provider`` or specify a Qiskit Aer backend when instantiating a primitive or a session.\n",
"To use local testing mode, specify one of the fake backends from ``qiskit_ibm_runtime.fake_provider`` or specify a Qiskit Aer backend when instantiating a Qiskit Runtime primitive or a session.\n",
"\n",
"- **Fake backends**: The [fake backends](/api/qiskit-ibm-runtime/fake_provider) in ``qiskit_ibm_runtime.fake_provider`` mimic the behaviors of IBM Quantum&trade; systems by using system snapshots. The system snapshots contain important information about the quantum system, such as the coupling map, basis gates, and qubit properties, which are useful for testing the transpiler and performing noisy simulations of the system. The noise model from the snapshot is automatically applied during simulation.\n",
"- **Aer simulator**: Simulators from [Qiskit Aer](simulate-with-qiskit-aer) provide higher-performance simulation that can handle larger circuits and [custom noise models](building_noise_models). It also supports Clifford simulation mode, which can efficiently simulate Clifford circuits with a large number of qubits.\n",
"\n",
"\n",
"<Admonition type=\"note\" title=\"Notes\">\n",
"You can specify all Qiskit Runtime options in local testing mode. However, all options except shots are ignored when run on a local simulator.\n",
"</Admonition>\n",
"\n",
"\n",
"{/* If you currently use the Qiskit SDK, you can use the existing Qiskit Aer primitives for local testing. See [exact and noisy simulation with Qiskit Aer primitives](../verify/simulate-with-qiskit-aer) for details. */}"
]
Expand Down
7 changes: 4 additions & 3 deletions docs/verify/simulate-with-qiskit-aer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"\n",
"[Exact simulation with Qiskit primitives](simulate-with-qiskit-primitives) demonstrates how to use the reference primitives included with Qiskit to perform exact simulation of quantum circuits. Currently existing quantum processors suffer from errors, or noise, so the results of an exact simulation do not necessarily reflect the results you would expect when running circuits on real hardware. While the reference primitives in Qiskit do not support modeling noise, [Qiskit Aer](https://qiskit.org/ecosystem/aer/) includes implementations of the primitives that do support modeling noise. Qiskit Aer is a high-performance quantum circuit simulator that you can use in place of the reference primitives for better performance and more features. It is part of the [Qiskit Ecosystem](https://qiskit.github.io/ecosystem/). In this article, we demonstrate the use of Qiskit Aer primitives for exact and noisy simulation.\n",
"\n",
"<Admonition>\n",
"The Qiskit Aer primitives do not yet support the V2 interface. To use the Aer simulator with V2 primitives, use the [Qiskit Runtime local testing mode](local-testing-mode) instead.\n",
"<Admonition type=\"note\" title=\"Notes\">\n",
"- V2 interface support requires `qiskit-aer` 0.14 or later.\n",
"- While Qiskit Aer primitives implement the primitive interfaces, they do not provide the same options as Qiskit Runtime primitives. Resilience level, for example, is not available with Qiskit Aer primitives.\n",
"</Admonition>\n",
"\n",
"Let's create an example circuit on eight qubits."
"To explore exact and noisy simulation, create an example circuit on eight qubits:"
]
},
{
Expand Down

0 comments on commit 1a9a9ca

Please sign in to comment.