azure-quantum 2.1.0__tar.gz → 2.1.1__tar.gz
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.
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/PKG-INFO +1 -1
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/_version.py +1 -1
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/backends/__init__.py +0 -2
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/backends/backend.py +1 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/backends/ionq.py +0 -84
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/backends/qci.py +1 -1
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/backends/quantinuum.py +3 -3
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/backends/rigetti.py +3 -3
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/job.py +18 -31
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/ionq.py +0 -8
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/version.py +1 -1
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure_quantum.egg-info/PKG-INFO +1 -1
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure_quantum.egg-info/requires.txt +4 -4
- azure-quantum-2.1.1/requirements-cirq.txt +2 -0
- azure-quantum-2.1.0/requirements-cirq.txt +0 -2
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/README.md +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_authentication/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_authentication/_chained.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_authentication/_default.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_authentication/_token.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/_client.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/_configuration.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/_patch.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/_serialization.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/_vendor.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/models/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/models/_enums.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/models/_models.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/models/_patch.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/operations/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/operations/_operations.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_client/operations/_patch.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_constants.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/_workspace_connection_params.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/argument_types/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/argument_types/types.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/chemistry/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/cirq/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/cirq/job.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/cirq/service.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/cirq/targets/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/cirq/targets/ionq.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/cirq/targets/quantinuum.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/cirq/targets/target.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/base_job.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/filtered_job.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/job.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/job_failed_with_results_error.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/session.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/workspace_item.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/workspace_item_factory.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/backends/microsoft.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/provider.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/results/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/results/resource_estimator.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/storage.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/elements/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/elements/dft/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/elements/dft/job.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/elements/dft/target.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/job.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/result.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/target.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/params.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/pasqal/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/pasqal/result.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/pasqal/target.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/quantinuum.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/rigetti/__init__.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/rigetti/result.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/rigetti/target.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/target.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/target_factory.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/workspace.py +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure_quantum.egg-info/SOURCES.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure_quantum.egg-info/dependency_links.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure_quantum.egg-info/top_level.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/requirements-dev.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/requirements-pulser.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/requirements-qiskit.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/requirements-qsharp.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/requirements-quil.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/requirements.txt +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/setup.cfg +0 -0
- {azure-quantum-2.1.0 → azure-quantum-2.1.1}/setup.py +0 -0
|
@@ -34,15 +34,12 @@ logger = logging.getLogger(__name__)
|
|
|
34
34
|
|
|
35
35
|
__all__ = [
|
|
36
36
|
"IonQBackend",
|
|
37
|
-
"IonQQPUBackend",
|
|
38
37
|
"IonQSimulatorBackend",
|
|
39
38
|
"IonQAriaBackend",
|
|
40
39
|
"IonQForteBackend",
|
|
41
40
|
"IonQQirBackend",
|
|
42
41
|
"IonQSimulatorQirBackend",
|
|
43
42
|
"IonQSimulatorNativeBackend",
|
|
44
|
-
"IonQQPUQirBackend",
|
|
45
|
-
"IonQQPUNativeBackend",
|
|
46
43
|
"IonQAriaQirBackend",
|
|
47
44
|
"IonQForteQirBackend",
|
|
48
45
|
"IonQAriaNativeBackend",
|
|
@@ -133,38 +130,6 @@ class IonQSimulatorQirBackend(IonQQirBackendBase):
|
|
|
133
130
|
super().__init__(configuration=configuration, provider=provider, **kwargs)
|
|
134
131
|
|
|
135
132
|
|
|
136
|
-
class IonQQPUQirBackend(IonQQirBackendBase):
|
|
137
|
-
backend_names = ("ionq.qpu",)
|
|
138
|
-
|
|
139
|
-
def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
|
|
140
|
-
"""Base class for interfacing with an IonQ QPU backend"""
|
|
141
|
-
|
|
142
|
-
default_config = BackendConfiguration.from_dict(
|
|
143
|
-
{
|
|
144
|
-
"backend_name": name,
|
|
145
|
-
"backend_version": __version__,
|
|
146
|
-
"simulator": False,
|
|
147
|
-
"local": False,
|
|
148
|
-
"coupling_map": None,
|
|
149
|
-
"description": "IonQ QPU on Azure Quantum",
|
|
150
|
-
"basis_gates": ionq_basis_gates,
|
|
151
|
-
"memory": False,
|
|
152
|
-
"n_qubits": 11,
|
|
153
|
-
"conditional": False,
|
|
154
|
-
"max_shots": 10000,
|
|
155
|
-
"max_experiments": 1,
|
|
156
|
-
"open_pulse": False,
|
|
157
|
-
"gates": [{"name": "TODO", "parameters": [], "qasm_def": "TODO"}],
|
|
158
|
-
"azure": self._azure_config(),
|
|
159
|
-
}
|
|
160
|
-
)
|
|
161
|
-
logger.info("Initializing IonQQPUQirBackend")
|
|
162
|
-
configuration: BackendConfiguration = kwargs.pop(
|
|
163
|
-
"configuration", default_config
|
|
164
|
-
)
|
|
165
|
-
super().__init__(configuration=configuration, provider=provider, **kwargs)
|
|
166
|
-
|
|
167
|
-
|
|
168
133
|
class IonQAriaQirBackend(IonQQirBackendBase):
|
|
169
134
|
backend_names = ("ionq.qpu.aria-1", "ionq.qpu.aria-2")
|
|
170
135
|
|
|
@@ -361,55 +326,6 @@ class IonQSimulatorNativeBackend(IonQSimulatorBackend):
|
|
|
361
326
|
return config
|
|
362
327
|
|
|
363
328
|
|
|
364
|
-
class IonQQPUBackend(IonQBackend):
|
|
365
|
-
backend_names = ("ionq.qpu",)
|
|
366
|
-
|
|
367
|
-
def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
|
|
368
|
-
"""Base class for interfacing with an IonQ QPU backend"""
|
|
369
|
-
gateset = kwargs.pop("gateset", "qis")
|
|
370
|
-
default_config = BackendConfiguration.from_dict(
|
|
371
|
-
{
|
|
372
|
-
"backend_name": name,
|
|
373
|
-
"backend_version": __version__,
|
|
374
|
-
"simulator": False,
|
|
375
|
-
"local": False,
|
|
376
|
-
"coupling_map": None,
|
|
377
|
-
"description": "IonQ QPU on Azure Quantum",
|
|
378
|
-
"basis_gates": GATESET_MAP[gateset],
|
|
379
|
-
"memory": False,
|
|
380
|
-
"n_qubits": 11,
|
|
381
|
-
"conditional": False,
|
|
382
|
-
"max_shots": 10000,
|
|
383
|
-
"max_experiments": 1,
|
|
384
|
-
"open_pulse": False,
|
|
385
|
-
"gates": [{"name": "TODO", "parameters": [], "qasm_def": "TODO"}],
|
|
386
|
-
"azure": self._azure_config(),
|
|
387
|
-
"gateset": gateset,
|
|
388
|
-
}
|
|
389
|
-
)
|
|
390
|
-
logger.info("Initializing IonQQPUBackend")
|
|
391
|
-
configuration: BackendConfiguration = kwargs.pop(
|
|
392
|
-
"configuration", default_config
|
|
393
|
-
)
|
|
394
|
-
super().__init__(configuration=configuration, provider=provider, **kwargs)
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
class IonQQPUNativeBackend(IonQQPUBackend):
|
|
398
|
-
def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
|
|
399
|
-
if "gateset" not in kwargs:
|
|
400
|
-
kwargs["gateset"] = "native"
|
|
401
|
-
super().__init__(name, provider, **kwargs)
|
|
402
|
-
|
|
403
|
-
def _azure_config(self) -> Dict[str, str]:
|
|
404
|
-
config = super()._azure_config()
|
|
405
|
-
config.update(
|
|
406
|
-
{
|
|
407
|
-
"is_default": False,
|
|
408
|
-
}
|
|
409
|
-
)
|
|
410
|
-
return config
|
|
411
|
-
|
|
412
|
-
|
|
413
329
|
class IonQAriaBackend(IonQBackend):
|
|
414
330
|
backend_names = ("ionq.qpu.aria-1", "ionq.qpu.aria-2")
|
|
415
331
|
|
|
@@ -119,7 +119,7 @@ class QuantinuumSyntaxCheckerQirBackend(QuantinuumQirBackendBase):
|
|
|
119
119
|
"coupling_map": None,
|
|
120
120
|
"description": f"Quantinuum Syntax Checker on Azure Quantum",
|
|
121
121
|
"basis_gates": QUANTINUUM_BASIS_GATES,
|
|
122
|
-
"memory":
|
|
122
|
+
"memory": True,
|
|
123
123
|
"n_qubits": self._get_n_qubits(name),
|
|
124
124
|
"conditional": False,
|
|
125
125
|
"max_shots": None,
|
|
@@ -156,7 +156,7 @@ class QuantinuumEmulatorQirBackend(QuantinuumQirBackendBase):
|
|
|
156
156
|
"coupling_map": None,
|
|
157
157
|
"description": f"Quantinuum emulator on Azure Quantum",
|
|
158
158
|
"basis_gates": QUANTINUUM_BASIS_GATES,
|
|
159
|
-
"memory":
|
|
159
|
+
"memory": True,
|
|
160
160
|
"n_qubits": self._get_n_qubits(name),
|
|
161
161
|
"conditional": False,
|
|
162
162
|
"max_shots": None,
|
|
@@ -193,7 +193,7 @@ class QuantinuumQPUQirBackend(QuantinuumQirBackendBase):
|
|
|
193
193
|
"coupling_map": None,
|
|
194
194
|
"description": f"Quantinuum QPU on Azure Quantum",
|
|
195
195
|
"basis_gates": QUANTINUUM_BASIS_GATES,
|
|
196
|
-
"memory":
|
|
196
|
+
"memory": True,
|
|
197
197
|
"n_qubits": self._get_n_qubits(name),
|
|
198
198
|
"conditional": False,
|
|
199
199
|
"max_shots": 10000,
|
|
@@ -23,7 +23,7 @@ QIR_BASIS_GATES = [
|
|
|
23
23
|
"ry",
|
|
24
24
|
"rz",
|
|
25
25
|
"s",
|
|
26
|
-
"sdg"
|
|
26
|
+
"sdg,"
|
|
27
27
|
"t",
|
|
28
28
|
"tdg",
|
|
29
29
|
"x",
|
|
@@ -86,7 +86,7 @@ class RigettiSimulatorBackend(RigettiBackend):
|
|
|
86
86
|
"coupling_map": None,
|
|
87
87
|
"description": "Rigetti simulator on Azure Quantum",
|
|
88
88
|
"basis_gates": QIR_BASIS_GATES,
|
|
89
|
-
"memory":
|
|
89
|
+
"memory": True,
|
|
90
90
|
"n_qubits": RigettiTarget.num_qubits(name),
|
|
91
91
|
"conditional": False,
|
|
92
92
|
"max_shots": 10000,
|
|
@@ -118,7 +118,7 @@ class RigettiQPUBackend(RigettiBackend):
|
|
|
118
118
|
"coupling_map": None,
|
|
119
119
|
"description": "Rigetti QPU on Azure Quantum",
|
|
120
120
|
"basis_gates": QIR_BASIS_GATES,
|
|
121
|
-
"memory":
|
|
121
|
+
"memory": True,
|
|
122
122
|
"n_qubits": RigettiTarget.num_qubits(name),
|
|
123
123
|
"conditional": False,
|
|
124
124
|
"max_shots": 10000,
|
|
@@ -273,45 +273,32 @@ class AzureQuantumJob(JobV1):
|
|
|
273
273
|
|
|
274
274
|
def _translate_microsoft_v2_results(self):
|
|
275
275
|
""" Translate Microsoft's batching job results histograms into a format that can be consumed by qiskit libraries. """
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
276
|
+
az_result_histogram = self._azure_job.get_results_histogram()
|
|
277
|
+
az_result_shots = self._azure_job.get_results_shots()
|
|
278
|
+
|
|
279
|
+
# If it is a non-batched result, format to be in batch format so we can have one code path
|
|
280
|
+
if isinstance(az_result_histogram, dict):
|
|
281
|
+
az_result_histogram = [az_result_histogram]
|
|
282
|
+
az_result_shots = [az_result_shots]
|
|
283
|
+
|
|
284
284
|
histograms = []
|
|
285
|
-
|
|
286
|
-
for
|
|
285
|
+
|
|
286
|
+
for (histogram, shots) in zip(az_result_histogram, az_result_shots):
|
|
287
287
|
counts = {}
|
|
288
288
|
probabilities = {}
|
|
289
289
|
|
|
290
|
-
|
|
291
|
-
raise ValueError("TotalCount missing from Job results")
|
|
290
|
+
total_count = len(shots)
|
|
292
291
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
raise ValueError("TotalCount must be a positive non-zero integer")
|
|
297
|
-
|
|
298
|
-
if not "Histogram" in circuit_results:
|
|
299
|
-
raise ValueError("Histogram missing from Job results")
|
|
300
|
-
|
|
301
|
-
histogram = circuit_results["Histogram"]
|
|
302
|
-
for result in histogram:
|
|
303
|
-
if not "Display" in result:
|
|
304
|
-
raise ValueError("Dispaly missing from histogram result")
|
|
305
|
-
|
|
306
|
-
if not "Count" in result:
|
|
307
|
-
raise ValueError("Count missing from histogram result")
|
|
308
|
-
|
|
309
|
-
bitstring = AzureQuantumJob._qir_to_qiskit_bitstring(result["Display"])
|
|
310
|
-
count = result["Count"]
|
|
292
|
+
for (display, result) in histogram.items():
|
|
293
|
+
bitstring = AzureQuantumJob._qir_to_qiskit_bitstring(display)
|
|
294
|
+
count = result["count"]
|
|
311
295
|
probability = count / total_count
|
|
312
296
|
counts[bitstring] = count
|
|
313
297
|
probabilities[bitstring] = probability
|
|
314
|
-
|
|
298
|
+
|
|
299
|
+
formatted_shots = [AzureQuantumJob._qir_to_qiskit_bitstring(shot) for shot in shots]
|
|
300
|
+
|
|
301
|
+
histograms.append((total_count, {"counts": counts, "probabilities": probabilities, "memory": formatted_shots}))
|
|
315
302
|
return histograms
|
|
316
303
|
|
|
317
304
|
def _get_entry_point_names(self):
|
|
@@ -15,7 +15,6 @@ from azure.quantum._client.models import CostEstimate, UsageEvent
|
|
|
15
15
|
|
|
16
16
|
COST_1QUBIT_GATE_MAP = {
|
|
17
17
|
"ionq.simulator" : 0.0,
|
|
18
|
-
"ionq.qpu" : 0.00003,
|
|
19
18
|
"ionq.qpu.aria-1" : 0.0002205,
|
|
20
19
|
"ionq.qpu.aria-2" : 0.0002205,
|
|
21
20
|
"ionq.qpu.forte-1" : 0.0002205
|
|
@@ -23,7 +22,6 @@ COST_1QUBIT_GATE_MAP = {
|
|
|
23
22
|
|
|
24
23
|
COST_2QUBIT_GATE_MAP = {
|
|
25
24
|
"ionq.simulator" : 0.0,
|
|
26
|
-
"ionq.qpu" : 0.0003,
|
|
27
25
|
"ionq.qpu.aria-1" : 0.00098,
|
|
28
26
|
"ionq.qpu.aria-2" : 0.00098,
|
|
29
27
|
"ionq.qpu.forte-1" : 0.00098
|
|
@@ -31,7 +29,6 @@ COST_2QUBIT_GATE_MAP = {
|
|
|
31
29
|
|
|
32
30
|
MIN_PRICE_MAP = {
|
|
33
31
|
"ionq.simulator" : 0.0,
|
|
34
|
-
"ionq.qpu" : 1.0,
|
|
35
32
|
"ionq.qpu.aria-1" : 97.5,
|
|
36
33
|
"ionq.qpu.aria-2" : 97.5,
|
|
37
34
|
"ionq.qpu.forte-1" : 97.5
|
|
@@ -47,7 +44,6 @@ def int_to_bitstring(k: int, num_qubits: int, measured_qubit_ids: List[int]):
|
|
|
47
44
|
class IonQ(Target):
|
|
48
45
|
"""IonQ target."""
|
|
49
46
|
target_names = (
|
|
50
|
-
"ionq.qpu",
|
|
51
47
|
"ionq.simulator",
|
|
52
48
|
"ionq.qpu.aria-1",
|
|
53
49
|
"ionq.qpu.aria-2",
|
|
@@ -141,10 +137,6 @@ class IonQ(Target):
|
|
|
141
137
|
|
|
142
138
|
Specify pricing details for your area to get most accurate results.
|
|
143
139
|
By default, this function charges depending on the target:
|
|
144
|
-
ionq.qpu:
|
|
145
|
-
price_1q = 0.00003 USD for a single-qubit gate.
|
|
146
|
-
price_2q = 0.0003 USD for a two-qubit gate.
|
|
147
|
-
min_price = 1 USD, total minimum price per circuit.
|
|
148
140
|
ionq.qpu.aria-1:
|
|
149
141
|
price_1q = 0.00022 USD for a single-qubit gate.
|
|
150
142
|
price_2q = 0.00098 USD for a two-qubit gate.
|
|
@@ -8,8 +8,8 @@ Markdown>=3.4.1
|
|
|
8
8
|
python-markdown-math>=0.8
|
|
9
9
|
|
|
10
10
|
[all]
|
|
11
|
-
cirq-core<=1.4.
|
|
12
|
-
cirq-ionq<=1.4.
|
|
11
|
+
cirq-core<=1.4.1,>=1.3.0
|
|
12
|
+
cirq-ionq<=1.4.1,>=1.3.0
|
|
13
13
|
vcrpy>=4.3.1
|
|
14
14
|
azure-devtools<2.0,>=1.2.0
|
|
15
15
|
graphviz>=0.20.1
|
|
@@ -23,8 +23,8 @@ qsharp<2.0,>=1.0.33
|
|
|
23
23
|
pyquil>=3.3.2
|
|
24
24
|
|
|
25
25
|
[cirq]
|
|
26
|
-
cirq-core<=1.4.
|
|
27
|
-
cirq-ionq<=1.4.
|
|
26
|
+
cirq-core<=1.4.1,>=1.3.0
|
|
27
|
+
cirq-ionq<=1.4.1,>=1.3.0
|
|
28
28
|
|
|
29
29
|
[dev]
|
|
30
30
|
vcrpy>=4.3.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/job/job_failed_with_results_error.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/qiskit/results/resource_estimator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/elements/__init__.py
RENAMED
|
File without changes
|
{azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/elements/dft/__init__.py
RENAMED
|
File without changes
|
{azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/elements/dft/job.py
RENAMED
|
File without changes
|
{azure-quantum-2.1.0 → azure-quantum-2.1.1}/azure/quantum/target/microsoft/elements/dft/target.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|