You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To learn more about Amazon Braket, you can view the `Amazon Braket Documentation <https://docs.aws.amazon.com/braket/>`__
12
-
and `Amazon Braket Examples <https://github.com/amazon-braket/amazon-braket-examples>`__.
12
+
and `Amazon Braket Examples <https://github.com/amazon-braket/amazon-braket-examples/tree/main/examples/nvidia_cuda_q>`__.
13
13
A list of available devices and regions can be found `here <https://docs.aws.amazon.com/braket/latest/developerguide/braket-devices.html>`__.
14
14
15
15
Users can run CUDA-Q programs on Amazon Braket with `Hybrid Job <https://docs.aws.amazon.com/braket/latest/developerguide/braket-what-is-hybrid-job.html>`__.
16
-
See `this guide <https://docs.aws.amazon.com/braket/latest/developerguide/braket-jobs-first.html>`__ to get started.
16
+
See `this guide <https://docs.aws.amazon.com/braket/latest/developerguide/braket-jobs-first.html>`__ to get started with Hybrid Jobs and `this guide <https://docs.aws.amazon.com/braket/latest/developerguide/braket-using-cuda-q.html>`__ on how to use CUDA-Q with Amazon Braket.
Copy file name to clipboardexpand all lines: pr-2632/_sources/using/backends/hardware/neutralatom.rst.txt
+6-4
Original file line number
Diff line number
Diff line change
@@ -133,12 +133,14 @@ Submitting
133
133
Pasqal
134
134
++++++++++++++++
135
135
136
-
Pasqal is a quantum computing hardware company that builds quantum processors from ordered neutral atoms in 2D and 3D arrays to bring a practical quantum advantage to its customers and address real-world problems.
137
-
The currently available Pasqal QPUs are analog quantum computers.
136
+
Pasqal is a quantum computing hardware company that builds quantum processors from ordered neutral atoms in 2D and 3D
137
+
arrays to bring a practical quantum advantage to its customers and address real-world problems.
138
+
The currently available Pasqal QPUs are analog quantum computers, and one, named Fresnel, is available through our cloud
139
+
portal.
138
140
139
141
In order to access Pasqal's devices you need an account for `Pasqal's cloud platform <https://portal.pasqal.cloud>`__
140
-
and an active project. Although a different interface `Pasqal's Pulser library <https://pulser.readthedocs.io/en/latest/>`__ is a good
141
-
way of getting started with analog neutral atom quantum computing. For support you can also use `Pasqal Community <https://community.pasqal.com/>`__.
142
+
and an active project. Although a different interface, `Pasqal's Pulser library <https://pulser.readthedocs.io/en/latest/>`__, is a good
143
+
resource for getting started with analog neutral atom quantum computing. For support you can also use `Pasqal Community <https://community.pasqal.com/>`__.
In the case of bit-string measurement sampling as in the above example, each measurement 'shot' is executed as a trajectory, whereby Kraus operators specified in the noise model are sampled.
42
+
43
+
For observable expectation value estimation, the statistical error scales asymptotically as :math:`1/\sqrt{N_{trajectories}}`, where :math:`N_{trajectories}` is the number of trajectories.
44
+
Hence, depending on the required level of accuracy, the number of trajectories can be specified accordingly.
The following environment variable options are applicable to the :code:`nvidia` target for trajectory noisy simulation. Any environment variables must be set
73
+
prior to setting the target.
74
+
75
+
.. list-table:: **Additional environment variable options for trajectory simulation**
76
+
:widths: 20 30 50
77
+
78
+
* - Option
79
+
- Value
80
+
- Description
81
+
* - ``CUDAQ_OBSERVE_NUM_TRAJECTORIES``
82
+
- positive integer
83
+
- The default number of trajectories for observe simulation if none was provided in the `observe` call. The default value is 1000.
84
+
* - ``CUDAQ_BATCH_SIZE``
85
+
- positive integer or `NONE`
86
+
- The number of state vectors in the batched mode. If `NONE`, the batch size will be calculated based on the available device memory. Default is `NONE`.
87
+
* - ``CUDAQ_BATCHED_SIM_MAX_BRANCHES``
88
+
- positive integer
89
+
- The number of trajectory branches to be tracked simultaneously in the gate fusion. Default is 16.
90
+
* - ``CUDAQ_BATCHED_SIM_MAX_QUBITS``
91
+
- positive integer
92
+
- The max number of qubits for batching. If the qubit count in the circuit is more than this value, batched trajectory simulation will be disabled. The default value is 20.
93
+
* - ``CUDAQ_BATCHED_SIM_MIN_BATCH_SIZE``
94
+
- positive integer
95
+
- The minimum number of trajectories for batching. If the number of trajectories is less than this value, batched trajectory simulation will be disabled. Default value is 4.
96
+
97
+
.. note::
98
+
99
+
Batched trajectory simulation is only available on the single-GPU execution mode of the :code:`nvidia` target.
100
+
101
+
If batched trajectory simulation is not activated, e.g., due to problem size, number of trajectories, or the nature of the circuit (dynamic circuits with mid-circuit measurements and conditional branching), the required number of trajectories will be executed sequentially.
102
+
103
+
5
104
6
105
Density Matrix
7
106
++++++++++++++++
@@ -70,7 +169,8 @@ To execute a program on the :code:`stim` target, use the following commands:
70
169
./program.x
71
170
72
171
.. note::
73
-
CUDA-Q currently executes kernels using a "shot-by-shot" execution approach.
172
+
By default CUDA-Q executes kernels using a "shot-by-shot" execution approach.
74
173
This allows for conditional gate execution (i.e. full control flow), but it
75
174
can be slower than executing Stim a single time and generating all the shots
76
175
from that single execution.
176
+
Set the `explicit_measurements` flag with `sample` API for efficient execution.
0 commit comments