azure-quantum 2.2.0.dev4__py3-none-any.whl → 2.2.0.dev5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,4 +6,4 @@
6
6
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  # --------------------------------------------------------------------------
8
8
 
9
- VERSION = "2.2.0.dev4"
9
+ VERSION = "2.2.0.dev5"
@@ -147,7 +147,7 @@ class IonQAriaQirBackend(IonQQirBackendBase):
147
147
  "description": "IonQ Aria QPU on Azure Quantum",
148
148
  "basis_gates": self._basis_gates(),
149
149
  "memory": False,
150
- "n_qubits": 23,
150
+ "n_qubits": 25,
151
151
  "conditional": False,
152
152
  "max_shots": 10000,
153
153
  "max_experiments": 1,
@@ -3,7 +3,7 @@
3
3
  # Licensed under the MIT License.
4
4
  ##
5
5
 
6
- from typing import TYPE_CHECKING, Dict, List
6
+ from typing import TYPE_CHECKING, Any, Dict, List, Union
7
7
  from azure.quantum.version import __version__
8
8
  from qiskit import QuantumCircuit
9
9
  from abc import abstractmethod
@@ -48,6 +48,23 @@ class MicrosoftBackend(AzureQirBackend):
48
48
  )
49
49
  return config
50
50
 
51
+ def _translate_input(
52
+ self,
53
+ circuits: Union[QuantumCircuit, List[QuantumCircuit]],
54
+ input_params: Dict[str, Any],
55
+ ) -> bytes:
56
+ """Translates the input values to the QIR expected by the Backend."""
57
+ # All the logic is in the base class, but we need to override
58
+ # this method to ensure that the bitcode QIR format is used for RE.
59
+
60
+ # normal translation is to QIR text format in utf-8 encoded bytes
61
+ ir_byte_str = super()._translate_input(circuits, input_params)
62
+ # decode the utf-8 encoded bytes to a string
63
+ ir_str = ir_byte_str.decode('utf-8')
64
+ # convert the QIR text format to QIR bitcode format
65
+ module = pyqir.Module.from_ir(pyqir.Context(), ir_str)
66
+ return module.bitcode
67
+
51
68
  def _generate_qir(
52
69
  self, circuits: List[QuantumCircuit], target_profile: TargetProfile, **kwargs
53
70
  ) -> pyqir.Module:
@@ -30,7 +30,7 @@ class RigettiTarget(str, Enum):
30
30
  QVM = "rigetti.sim.qvm"
31
31
  """A simulator target for Quil. See https://github.com/quil-lang/qvm for more info."""
32
32
 
33
- ANKAA_2 = "rigetti.qpu.ankaa-2"
33
+ ANKAA_9Q_3 = "rigetti.qpu.ankaa-9q-3"
34
34
 
35
35
  def simulators() -> List[str]:
36
36
  """Returns a list of simulator targets"""
@@ -41,7 +41,7 @@ class RigettiTarget(str, Enum):
41
41
  def qpus() -> List[str]:
42
42
  """Returns a list of QPU targets"""
43
43
  return [
44
- RigettiTarget.ANKAA_2.value,
44
+ RigettiTarget.ANKAA_9Q_3.value,
45
45
  ]
46
46
 
47
47
  def num_qubits(target_name) -> int:
@@ -49,8 +49,8 @@ class RigettiTarget(str, Enum):
49
49
 
50
50
  if target_name == RigettiTarget.QVM.value:
51
51
  return 20
52
- elif target_name == RigettiTarget.ANKAA_2.value:
53
- return 84
52
+ elif target_name == RigettiTarget.ANKAA_9Q_3.value:
53
+ return 9
54
54
  else:
55
55
  raise ValueError(f"Unknown target {target_name}")
56
56
 
azure/quantum/version.py CHANGED
@@ -5,4 +5,4 @@
5
5
  # Copyright (c) Microsoft Corporation. All rights reserved.
6
6
  # Licensed under the MIT License.
7
7
  ##
8
- __version__ = "2.2.0.dev4"
8
+ __version__ = "2.2.0.dev5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: azure-quantum
3
- Version: 2.2.0.dev4
3
+ Version: 2.2.0.dev5
4
4
  Summary: Python client for Azure Quantum
5
5
  Home-page: https://github.com/microsoft/azure-quantum-python
6
6
  Author: Microsoft
@@ -26,8 +26,7 @@ Requires-Dist: azure-devtools<2.0,>=1.2.0; extra == "all"
26
26
  Requires-Dist: graphviz>=0.20.1; extra == "all"
27
27
  Requires-Dist: pulser<0.19,>=0.18; extra == "all"
28
28
  Requires-Dist: qiskit-ionq<0.6,>=0.5; extra == "all"
29
- Requires-Dist: qiskit<2.0,>=1.2.2; extra == "all"
30
- Requires-Dist: qsharp<2.0,>=1.9.0; extra == "all"
29
+ Requires-Dist: qsharp[qiskit]<2.0,>=1.9.0; extra == "all"
31
30
  Requires-Dist: pyqir<0.11,>=0.10.5; extra == "all"
32
31
  Requires-Dist: Markdown<4.0,>=3.4.1; extra == "all"
33
32
  Requires-Dist: python-markdown-math<1.0,>=0.8.0; extra == "all"
@@ -44,8 +43,7 @@ Provides-Extra: pulser
44
43
  Requires-Dist: pulser<0.19,>=0.18; extra == "pulser"
45
44
  Provides-Extra: qiskit
46
45
  Requires-Dist: qiskit-ionq<0.6,>=0.5; extra == "qiskit"
47
- Requires-Dist: qiskit<2.0,>=1.2.2; extra == "qiskit"
48
- Requires-Dist: qsharp<2.0,>=1.9.0; extra == "qiskit"
46
+ Requires-Dist: qsharp[qiskit]<2.0,>=1.9.0; extra == "qiskit"
49
47
  Requires-Dist: pyqir<0.11,>=0.10.5; extra == "qiskit"
50
48
  Requires-Dist: Markdown<4.0,>=3.4.1; extra == "qiskit"
51
49
  Requires-Dist: python-markdown-math<1.0,>=0.8.0; extra == "qiskit"
@@ -2,7 +2,7 @@ azure/quantum/__init__.py,sha256=Za8xZY4lzFkW8m4ero-bqrfN437D2NRukM77ukb4GPM,508
2
2
  azure/quantum/_constants.py,sha256=nDL_QrGdI_Zz_cvTB9nVgfE7J6A_Boo1ollMYqsiEBs,3499
3
3
  azure/quantum/_workspace_connection_params.py,sha256=KoT90U89Dj6pVwAKp_ENJL1hyTF0oQe7w0QioOGvjXg,21685
4
4
  azure/quantum/storage.py,sha256=_4bMniDk9LrB_K5CQwuCivJFZXdmhRvU2b6Z3xxXw9I,12556
5
- azure/quantum/version.py,sha256=Sw-ANwkJS7u2IqURbGQWWsEePVmkDr_0IeP9BtBNdeI,240
5
+ azure/quantum/version.py,sha256=Z08War2Liv_5bTLhAAiZ4EsFqKHQu4iUGkLQ5HX6PRk,240
6
6
  azure/quantum/workspace.py,sha256=1__iZTe59ozAsAGJ4nECxmk_211Dm8ALJi-MFIdrg4o,23438
7
7
  azure/quantum/_authentication/__init__.py,sha256=bniNZlS0hMIjO_y7DevGBAS6MixyA5pbPHcdGipUWM4,236
8
8
  azure/quantum/_authentication/_chained.py,sha256=0rdohB_fVGFHUhlly9sGxqQTBTZGpGxtlBqNHDFbAqE,4848
@@ -14,7 +14,7 @@ azure/quantum/_client/_configuration.py,sha256=5uktKtZxoVVAoSyeL0VNGS9AfPERp-9rU
14
14
  azure/quantum/_client/_patch.py,sha256=YTV6yZ9bRfBBaw2z7v4MdzR-zeHkdtKkGb4SU8C25mE,694
15
15
  azure/quantum/_client/_serialization.py,sha256=KJSS6KWgnKcz-cENQCmWZ9Ziv303lnBbLwFIpYZeKFU,81097
16
16
  azure/quantum/_client/_vendor.py,sha256=h8ByiyZ4cCQyFxqnuhTQdv1Rms3dVjKsrgZDzwMcSJ0,996
17
- azure/quantum/_client/_version.py,sha256=AoZh_S-qBuSttJ1izv5kW4dR0JfJYQQTXTRGG8C9LUU,500
17
+ azure/quantum/_client/_version.py,sha256=mmo1ypZwkaOTiny7lpDoS6NnhwLrFI5vhNYI_PCTv_Q,500
18
18
  azure/quantum/_client/models/__init__.py,sha256=c1PRpzNsQTcDk4GkrFMMIlwNQQa2c0p5N0Lzd-23YBA,2100
19
19
  azure/quantum/_client/models/_enums.py,sha256=omj_B8_E8ONzTHg5hLgDlFYibRRbdr9sEN298im_otA,2977
20
20
  azure/quantum/_client/models/_models.py,sha256=wktCM5oBVfwQetNoHobL1wNsC3knXV-HmqBq_Q77Kw4,41810
@@ -45,8 +45,8 @@ azure/quantum/qiskit/job.py,sha256=0pwmS-M0lDrSzHUgIrM0yRmEp5cbVPX7Vo1Tar0xAJM,1
45
45
  azure/quantum/qiskit/provider.py,sha256=kbZJgDX-hI-AD5rQfik4JHNnNd74oyfrKYauosqBRxw,10966
46
46
  azure/quantum/qiskit/backends/__init__.py,sha256=DBC6GgYa5Y0p5xu5ADqlOXs7zp8_RDTJ86qKhuzXfG0,1118
47
47
  azure/quantum/qiskit/backends/backend.py,sha256=wsNri5CtI0rGSpTEzuqIwxebjK1Nop0OyxadSyPH3IQ,24001
48
- azure/quantum/qiskit/backends/ionq.py,sha256=_zsmkOVWPCppTlpCpNr-OU8BAMbxoxuoIxJmP7xtpiA,14438
49
- azure/quantum/qiskit/backends/microsoft.py,sha256=zt8WBt4k3ijrR2P6JGIbU7vwIycB9XTi_s54tHO8KWQ,5260
48
+ azure/quantum/qiskit/backends/ionq.py,sha256=YYR6ELJ7VMw2kUSMQ0VTART0ykJvGgYTQDbfAFdx8Do,14438
49
+ azure/quantum/qiskit/backends/microsoft.py,sha256=l6o6u78DhyObX6YBulwoj6OUIj49DZHEjPms-WvQ9H0,6068
50
50
  azure/quantum/qiskit/backends/qci.py,sha256=c0YK-znG8TSAnFmeszo7mpKhM624QHszTQoapOqOvHg,4794
51
51
  azure/quantum/qiskit/backends/quantinuum.py,sha256=r7D3pelIdhczTP5hwpfshK_zi2-E3KFesdi_3dYxYJk,13654
52
52
  azure/quantum/qiskit/backends/rigetti.py,sha256=lTsa0UjPdsAZUvvfnBge7H22TvA7c-_3fU09ZTA4ARs,4146
@@ -71,8 +71,8 @@ azure/quantum/target/pasqal/result.py,sha256=SUvpnrtgvCGiepmNpyifW8b4p14-SZZ1ToC
71
71
  azure/quantum/target/pasqal/target.py,sha256=K_vqavov6gvS84voRKeBx9pO8g4LrtWrlZ5-RMLWozw,5139
72
72
  azure/quantum/target/rigetti/__init__.py,sha256=I1vyzZBYGI540pauTqJd0RSSyTShGqkEL7Yjo25_RNY,378
73
73
  azure/quantum/target/rigetti/result.py,sha256=65mtAZxfdNrTWNjWPqgfwt2BZN6Nllo4g_bls7-Nm68,2334
74
- azure/quantum/target/rigetti/target.py,sha256=5n_8y7vrsQPlTdSXVS7BIN68QppYIqDxEJvjx6jxKFA,7407
75
- azure_quantum-2.2.0.dev4.dist-info/METADATA,sha256=jv1MqU9ATq8544-meWOeBJ8Gcscrz_wY75QqGXZdP4c,7451
76
- azure_quantum-2.2.0.dev4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
77
- azure_quantum-2.2.0.dev4.dist-info/top_level.txt,sha256=S7DhWV9m80TBzAhOFjxDUiNbKszzoThbnrSz5MpbHSQ,6
78
- azure_quantum-2.2.0.dev4.dist-info/RECORD,,
74
+ azure/quantum/target/rigetti/target.py,sha256=75yGp8RYXGX9NWOkqoY_9L7FtUcAlD5KPj92wTn1zYg,7418
75
+ azure_quantum-2.2.0.dev5.dist-info/METADATA,sha256=Il--zQ5N4L08RaVT9HOvUPIwm5oXW5C_hleoySn-kgA,7362
76
+ azure_quantum-2.2.0.dev5.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
77
+ azure_quantum-2.2.0.dev5.dist-info/top_level.txt,sha256=S7DhWV9m80TBzAhOFjxDUiNbKszzoThbnrSz5MpbHSQ,6
78
+ azure_quantum-2.2.0.dev5.dist-info/RECORD,,