From 2dfd17d45b829589ef70bb4ea451911df99762ed Mon Sep 17 00:00:00 2001 From: Alexandre Papin Date: Wed, 1 Jul 2026 09:32:02 +0200 Subject: [PATCH 1/3] Update documentation to use pulser-azure --- .../quickstart-microsoft-provider-format.md | 33 +++++++++++++++---- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/articles/quickstart-microsoft-provider-format.md b/articles/quickstart-microsoft-provider-format.md index 708ca7aa0..4814e1d3d 100644 --- a/articles/quickstart-microsoft-provider-format.md +++ b/articles/quickstart-microsoft-provider-format.md @@ -216,9 +216,9 @@ To submit the pulse sequences, first install the Pulser SDK packages: ```python try: import pulser - import pulser_pasqal + import pulser_azure except ImportError: - !pip -q install pulser pulser-pasqal --index-url https://pypi.org/simple + !pip -q install pulser pulser-azure --index-url https://pypi.org/simple ``` #### Create a quantum register @@ -230,10 +230,11 @@ For details on layouts, see the [Pulser documentation](https://pulser.readthedoc Create a `devices` object to import the Pasqal quantum computer target, [FRESNEL_CAN1](xref:microsoft.quantum.providers.pasqal#fresnel_can1). ```python -from pulser_pasqal import PasqalCloud +from pulser_azure import AzureConnection -devices = PasqalCloud().fetch_available_devices() -QPU = devices["FRESNEL_CAN1"] +connection = AzureConnection(resource_id="") # Add your resource ID +devices = connection.fetch_available_devices() +QPU = devices["pasqal.qpu.fresnel-can1"] ``` ##### Set up your layout @@ -281,7 +282,7 @@ Neutral atoms are controlled with laser pulses. The Pulser SDK allows you to cre ``` > [!NOTE] - > You can use the `QPU = devices["FRESNEL_CAN1"]` device or import a virtual device from Pulser for more flexibility. The use of a `VirtualDevice` allows for sequence creation that's less constrained by device specifications, which lets you run on an emulator. For more information, see [Pulser documentation](https://pulser.readthedocs.io/en/stable/tutorials/creating.html#2.-Initializing-the-Sequence). + > You can use the `QPU = devices["pasqal.qpu.fresnel-can1"]` device or import a virtual device from Pulser for more flexibility. The use of a `VirtualDevice` allows for sequence creation that's less constrained by device specifications, which lets you run on an emulator. For more information, see [Pulser documentation](https://pulser.readthedocs.io/en/stable/tutorials/creating.html#2.-Initializing-the-Sequence). 1. Add pulses to your sequence. To do so, create and add pulses to the channels that you declared. For example, the following code creates a pulse and adds it to channel `ch0`: @@ -353,12 +354,30 @@ def prepare_input_data(seq): ```output { - "1000000": 3, + "1000000": 8, "0010000": 1, "0010101": 1 } ``` + +#### Use pulser backends to execute the sequence + +With `AzureConnection` from [pulser-azure](https://pypi.org/project/pulser-azure/), you can directly use a [qpu backend](https://pulser.readthedocs.io/en/stable/tutorials/qpu.html#3.1.-Executing-on-QPUBackend) or a [remote emulator backend](https://pasqal-io.github.io/pulser-azure/getting-started/#running-on-emulators) to execute the sequence. + +```python +from pulser.backends import RemoteMPSBackend, QPUBackend + +backend = RemoteMPSBackend(sequence=seq, connection=connection) # Replace RemoteMPSBackend with QPUBackend to execute the sequence on the QPU +results = backend.run(job_params=[{"runs": 10}], wait=True) + +print(results.results[0].final_bitstrings) +``` + +```output +Counter({"1000000": 8, "0010000": 1, "0010101": 1}) +``` + ### Submit an OpenQASM circuit to Quantinuum 1. Create a quantum circuit in the [OpenQASM](https://en.wikipedia.org/wiki/OpenQASM) representation. For example, the following code creates a Teleportation circuit: From 823f160e41ee296729346e816339775f1c1cdd67 Mon Sep 17 00:00:00 2001 From: Alexandre Papin Date: Wed, 1 Jul 2026 11:28:32 +0200 Subject: [PATCH 2/3] Update links toward doc portal instead of read the doc --- articles/provider-pasqal.md | 2 +- articles/quickstart-microsoft-provider-format.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/articles/provider-pasqal.md b/articles/provider-pasqal.md index a7d27e3b4..26e8c1dd3 100644 --- a/articles/provider-pasqal.md +++ b/articles/provider-pasqal.md @@ -85,7 +85,7 @@ By making use of optical tweezers we can assemble an adjustable quantum register ## Pulser SDK -In Pasqal QPU, individual atoms are trapped at well-defined positions in 1D or 2D lattices. [Pulser](https://github.com/pasqal-io/Pulser) is a framework for composing, simulating and executing pulse sequences on neutral atoms quantum devices. For more information, see [Pulser documentation](https://pulser.readthedocs.io/en/latest/). +In Pasqal QPU, individual atoms are trapped at well-defined positions in 1D or 2D lattices. [Pulser](https://github.com/pasqal-io/Pulser) is a framework for composing, simulating and executing pulse sequences on neutral atoms quantum devices. For more information, see [Pulser documentation](https://docs.pasqal.com/pulser/). To install Pulser SDK packages, run the following code: diff --git a/articles/quickstart-microsoft-provider-format.md b/articles/quickstart-microsoft-provider-format.md index 4814e1d3d..05120fbba 100644 --- a/articles/quickstart-microsoft-provider-format.md +++ b/articles/quickstart-microsoft-provider-format.md @@ -209,7 +209,7 @@ You can use the Pulser SDK to create pulse sequences and submit them to Pasqal t #### Install the Pulser SDK -[Pulser](https://github.com/pasqal-io/Pulser) is a framework that allows you to create, simulate, and run pulse sequences for neutral-atom quantum devices. Pulser is designed by PASQAL as a pass-through to submit quantum experiments to their quantum processors. For more information, see the [Pulser documentation](https://pulser.readthedocs.io/en/latest/). +[Pulser](https://github.com/pasqal-io/Pulser) is a framework that allows you to create, simulate, and run pulse sequences for neutral-atom quantum devices. Pulser is designed by PASQAL as a pass-through to submit quantum experiments to their quantum processors. For more information, see the [Pulser documentation](https://docs.pasqal.com/pulser/). To submit the pulse sequences, first install the Pulser SDK packages: @@ -225,7 +225,7 @@ except ImportError: Define both a register and a layout. The register specifies where to arrange the atoms, and the layout specifies the positions of traps that capture and structure the atoms within the register. -For details on layouts, see the [Pulser documentation](https://pulser.readthedocs.io/en/stable/tutorials/reg_layouts.html). +For details on layouts, see the [Pulser documentation](https://docs.pasqal.com/pulser/tutorials/reg_layouts/). Create a `devices` object to import the Pasqal quantum computer target, [FRESNEL_CAN1](xref:microsoft.quantum.providers.pasqal#fresnel_can1). @@ -261,7 +261,7 @@ To create an arbitrary layout, choose one of the following options: reg = Register(qubits).with_automatic_layout(device) ``` -- To manually define a layout to create your register, see the [Pulser documentation](https://pulser.readthedocs.io/en/stable/tutorials/reg_layouts.html#Arbitrary-Layouts). +- To manually define a layout to create your register, see the [Pulser documentation](https://docs.pasqal.com/pulser/tutorials/reg_layouts/#Arbitrary-Layouts). #### Write a pulse sequence @@ -282,7 +282,7 @@ Neutral atoms are controlled with laser pulses. The Pulser SDK allows you to cre ``` > [!NOTE] - > You can use the `QPU = devices["pasqal.qpu.fresnel-can1"]` device or import a virtual device from Pulser for more flexibility. The use of a `VirtualDevice` allows for sequence creation that's less constrained by device specifications, which lets you run on an emulator. For more information, see [Pulser documentation](https://pulser.readthedocs.io/en/stable/tutorials/creating.html#2.-Initializing-the-Sequence). + > You can use the `QPU = devices["pasqal.qpu.fresnel-can1"]` device or import a virtual device from Pulser for more flexibility. The use of a `VirtualDevice` allows for sequence creation that's less constrained by device specifications, which lets you run on an emulator. For more information, see [Pulser documentation](https://docs.pasqal.com/pulser/tutorials/virtual_devices/). 1. Add pulses to your sequence. To do so, create and add pulses to the channels that you declared. For example, the following code creates a pulse and adds it to channel `ch0`: @@ -363,7 +363,7 @@ def prepare_input_data(seq): #### Use pulser backends to execute the sequence -With `AzureConnection` from [pulser-azure](https://pypi.org/project/pulser-azure/), you can directly use a [qpu backend](https://pulser.readthedocs.io/en/stable/tutorials/qpu.html#3.1.-Executing-on-QPUBackend) or a [remote emulator backend](https://pasqal-io.github.io/pulser-azure/getting-started/#running-on-emulators) to execute the sequence. +With `AzureConnection` from [pulser-azure](https://pypi.org/project/pulser-azure/), you can directly use a [qpu backend](https://docs.pasqal.com/pulser/tutorials/qpu/#3.1.-Executing-on-QPUBackend) or a [remote emulator backend](https://pasqal-io.github.io/pulser-azure/getting-started/#running-on-emulators) to execute the sequence. ```python from pulser.backends import RemoteMPSBackend, QPUBackend From 823cf42b808b8cd14bd59e7f72e535170bdd249a Mon Sep 17 00:00:00 2001 From: Alexandre Papin Date: Wed, 1 Jul 2026 13:57:47 +0200 Subject: [PATCH 3/3] typo --- articles/quickstart-microsoft-provider-format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/quickstart-microsoft-provider-format.md b/articles/quickstart-microsoft-provider-format.md index 05120fbba..3a962e482 100644 --- a/articles/quickstart-microsoft-provider-format.md +++ b/articles/quickstart-microsoft-provider-format.md @@ -363,7 +363,7 @@ def prepare_input_data(seq): #### Use pulser backends to execute the sequence -With `AzureConnection` from [pulser-azure](https://pypi.org/project/pulser-azure/), you can directly use a [qpu backend](https://docs.pasqal.com/pulser/tutorials/qpu/#3.1.-Executing-on-QPUBackend) or a [remote emulator backend](https://pasqal-io.github.io/pulser-azure/getting-started/#running-on-emulators) to execute the sequence. +With `AzureConnection` from [pulser-azure](https://pypi.org/project/pulser-azure/), you can directly use a [QPU backend](https://docs.pasqal.com/pulser/tutorials/qpu/#3.1.-Executing-on-QPUBackend) or a [remote emulator backend](https://pasqal-io.github.io/pulser-azure/getting-started/#running-on-emulators) to execute the sequence. ```python from pulser.backends import RemoteMPSBackend, QPUBackend