azure-quantum 3.1.0__py3-none-any.whl → 3.1.1.dev1__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 = "3.1.0"
9
+ VERSION = "3.1.1.dev1"
@@ -59,7 +59,14 @@ class BaseJob(WorkspaceItem):
59
59
  @property
60
60
  def container_name(self):
61
61
  """Job input/output data container name"""
62
- return f"job-{self.id}"
62
+
63
+ if self._details.container_uri is None:
64
+ return f"job-{self.id}"
65
+ else:
66
+ container_uri = self._details.container_uri
67
+ path = urlparse(container_uri).path
68
+ container_name = path.split("/")[1]
69
+ return container_name
63
70
 
64
71
  @classmethod
65
72
  def from_input_data(
@@ -323,7 +330,10 @@ class BaseJob(WorkspaceItem):
323
330
 
324
331
  # Use Job's default container if not specified
325
332
  if container_uri is None:
326
- container_uri = self.workspace.get_container_uri(job_id=self.id)
333
+ if self._details.container_uri is None:
334
+ container_uri = self.workspace.get_container_uri(job_id=self.id)
335
+ else:
336
+ container_uri = self._details.container_uri
327
337
 
328
338
  uploaded_blob_uri = self.upload_input_data(
329
339
  container_uri = container_uri,
@@ -353,7 +363,10 @@ class BaseJob(WorkspaceItem):
353
363
 
354
364
  # Use Job's default container if not specified
355
365
  if container_uri is None:
356
- container_uri = self.workspace.get_container_uri(job_id=self.id)
366
+ if self._details.container_uri is None:
367
+ container_uri = self.workspace.get_container_uri(job_id=self.id)
368
+ else:
369
+ container_uri = self._details.container_uri
357
370
 
358
371
  container_client = ContainerClient.from_container_url(container_uri)
359
372
  blob_client = container_client.get_blob_client(name)
@@ -240,10 +240,6 @@ class MicrosoftElementsDft(Target):
240
240
  # Check Model params
241
241
  self._check_dict_for_required_keys(input_params['model'], 'input_params["model"]', ['method', 'basis'])
242
242
 
243
- supported_drivers = ['energy', 'gradient', 'hessian', 'go', 'bomd']
244
- if input_params['driver'] not in supported_drivers:
245
- raise ValueError(f"Driver ({input_params['driver']}) is not supported. Please use one of {supported_drivers}.")
246
-
247
243
 
248
244
  @classmethod
249
245
  def _check_dict_for_required_keys(self, input_params: dict, dict_name: str, required_keys: list[str]):
@@ -317,4 +313,4 @@ class MicrosoftElementsDft(Target):
317
313
  return {
318
314
  "description": "This files contains the mapping between the xyz file name that were submitted and the qcschema blobs that are used for the calculation.",
319
315
  "tableOfContents": toc,
320
- }
316
+ }
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__ = "3.1.0"
8
+ __version__ = "3.1.1.dev1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: azure-quantum
3
- Version: 3.1.0
3
+ Version: 3.1.1.dev1
4
4
  Summary: Python client for Azure Quantum
5
5
  Home-page: https://github.com/microsoft/azure-quantum-python
6
6
  Author: Microsoft
@@ -31,7 +31,7 @@ Requires-Dist: pyqir<0.11,>=0.10.6; extra == "all"
31
31
  Requires-Dist: Markdown<4.0,>=3.4.1; extra == "all"
32
32
  Requires-Dist: python-markdown-math<1.0,>=0.8.0; extra == "all"
33
33
  Requires-Dist: qsharp<2.0,>=1.0.33; extra == "all"
34
- Requires-Dist: pyquil>=3.3.2; extra == "all"
34
+ Requires-Dist: pyquil==4.13.1; extra == "all"
35
35
  Provides-Extra: cirq
36
36
  Requires-Dist: cirq-core<=1.4.1,>=1.3.0; extra == "cirq"
37
37
  Requires-Dist: cirq-ionq<=1.4.1,>=1.3.0; extra == "cirq"
@@ -50,7 +50,7 @@ Requires-Dist: python-markdown-math<1.0,>=0.8.0; extra == "qiskit"
50
50
  Provides-Extra: qsharp
51
51
  Requires-Dist: qsharp<2.0,>=1.0.33; extra == "qsharp"
52
52
  Provides-Extra: quil
53
- Requires-Dist: pyquil>=3.3.2; extra == "quil"
53
+ Requires-Dist: pyquil==4.13.1; extra == "quil"
54
54
 
55
55
  ![Azure Quantum logo](https://raw.githubusercontent.com/microsoft/qdk-python/main/azure-quantum/Azure-Quantum-logo.png)
56
56
 
@@ -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=QDqF8C-GY6J98ARGs-kANkJQjnwCvA4j8XhPy6D8iJk,235
5
+ azure/quantum/version.py,sha256=Y_psyrHjJR5bGGquHM90OWLzA14e8OOs1xIuo2zzye4,240
6
6
  azure/quantum/workspace.py,sha256=9oO4vjwIn1pdHFLZCQcEPQ_xjQjTNO4UIWSBQpj6Cgo,35574
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=FFUHJPp6X0015GpD-YLmYCoq8GI86nHCn
14
14
  azure/quantum/_client/_model_base.py,sha256=hu7OdRS2Ra1igfBo-R3zS3dzO3YhFC4FGHJ_WiyZgNg,43736
15
15
  azure/quantum/_client/_patch.py,sha256=YTV6yZ9bRfBBaw2z7v4MdzR-zeHkdtKkGb4SU8C25mE,694
16
16
  azure/quantum/_client/_serialization.py,sha256=bBl0y0mh-0sDd-Z8_dj921jQQhqhYWTOl59qSLuk01M,86686
17
- azure/quantum/_client/_version.py,sha256=mcYB9iVlHQQx3dCWxrE5maNmYYaFykgEs72sBAChPIQ,495
17
+ azure/quantum/_client/_version.py,sha256=0I-JGT0Q9PmYSn-3lUL_C1sY91HhoawnrJg5rrhcNok,500
18
18
  azure/quantum/_client/py.typed,sha256=dcrsqJrcYfTX-ckLFJMTaj6mD8aDe2u0tkQG-ZYxnEg,26
19
19
  azure/quantum/_client/models/__init__.py,sha256=MR2av7s_tCP66hicN9JXCmTngJ4_-ozM4cmblGjPwn8,1971
20
20
  azure/quantum/_client/models/_enums.py,sha256=RNCPXxeae4d7wtPqcSxu5JZBLFLZZYVZbALjui_f1fM,4288
@@ -34,7 +34,7 @@ azure/quantum/cirq/targets/ionq.py,sha256=PIX6jGgzhfRdXOXuwGxATuiMr_Le0XNEJJ6-It
34
34
  azure/quantum/cirq/targets/quantinuum.py,sha256=I0uxYV90jCSq-rttSTHbv7yuruqyxI5FCMJYdhkXhOI,3939
35
35
  azure/quantum/cirq/targets/target.py,sha256=1EEog72dFZoiOTQP7obOrCuO3VH0yjXGAIMeO6bm22o,2184
36
36
  azure/quantum/job/__init__.py,sha256=nFuOsG25a8WzYFLwA2fhA0JMNWtblfDjV5WRgB6UQbw,829
37
- azure/quantum/job/base_job.py,sha256=NwtI-dcpOfKp-ANnLAPKQVgT3t9BEv_MQSp1N47oKM0,13876
37
+ azure/quantum/job/base_job.py,sha256=GDwoJDxoaCwGz9TBuzlkuqXdU84L6FliO_2YWxnLnrE,14399
38
38
  azure/quantum/job/filtered_job.py,sha256=qZfxTuDp0hzK4wermn4GRzLxnDy4yM-j6oZQ3D0O4vI,1877
39
39
  azure/quantum/job/job.py,sha256=D6MMOUEvx_qLdyr7vU1t62MUNMapOnFgcMBYCt7-TXM,17721
40
40
  azure/quantum/job/job_failed_with_results_error.py,sha256=bSqOZ0c6FNbS9opvwkCXG9mfTkAiyZRvp_YA3V-ktEs,1597
@@ -60,14 +60,14 @@ azure/quantum/target/microsoft/target.py,sha256=MlEBPhXYcHPBuORSeoslFgpw31C_cwJB
60
60
  azure/quantum/target/microsoft/elements/__init__.py,sha256=gVVpaN5086iuBnajtvTjSd7MLExtnsR6RDCmcgz6xpE,70
61
61
  azure/quantum/target/microsoft/elements/dft/__init__.py,sha256=kCXOA9HT-gb23An-A0eyktlB66VoH6EwNO4gPM97l3U,224
62
62
  azure/quantum/target/microsoft/elements/dft/job.py,sha256=6v7lZwXyUGrOI8J17akanMrFXrPVDhsZR3c6AFpa5So,6942
63
- azure/quantum/target/microsoft/elements/dft/target.py,sha256=MoQ-jlWU25ct7YTG_vSm5nJDrP-S5YRbxdspf1-OIWY,13089
63
+ azure/quantum/target/microsoft/elements/dft/target.py,sha256=10el-q7QO3k19sytnoBfRaMzd5H2RvGHqm4N5IZfcjQ,12826
64
64
  azure/quantum/target/pasqal/__init__.py,sha256=qbe6oWTQTsnTYwY3xZr32z4AWaYIchx71bYlqC2rQqw,348
65
65
  azure/quantum/target/pasqal/result.py,sha256=SUvpnrtgvCGiepmNpyifW8b4p14-SZZ1ToCC0NAdIwg,1463
66
66
  azure/quantum/target/pasqal/target.py,sha256=K_vqavov6gvS84voRKeBx9pO8g4LrtWrlZ5-RMLWozw,5139
67
67
  azure/quantum/target/rigetti/__init__.py,sha256=I1vyzZBYGI540pauTqJd0RSSyTShGqkEL7Yjo25_RNY,378
68
68
  azure/quantum/target/rigetti/result.py,sha256=65mtAZxfdNrTWNjWPqgfwt2BZN6Nllo4g_bls7-Nm68,2334
69
69
  azure/quantum/target/rigetti/target.py,sha256=5C8p7CVKKXsaBM0BLFA4MrBwvLtY5INp4GQsE9t4P1U,7407
70
- azure_quantum-3.1.0.dist-info/METADATA,sha256=zF5l5rnmr37Dxlm88hBSuFA1D1PGcTwtOhNizm5CaIo,7357
71
- azure_quantum-3.1.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
72
- azure_quantum-3.1.0.dist-info/top_level.txt,sha256=S7DhWV9m80TBzAhOFjxDUiNbKszzoThbnrSz5MpbHSQ,6
73
- azure_quantum-3.1.0.dist-info/RECORD,,
70
+ azure_quantum-3.1.1.dev1.dist-info/METADATA,sha256=lOFlc52x-uH1_jcrzhcu9pKNagQjX_5tz6MosANo_QE,7364
71
+ azure_quantum-3.1.1.dev1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
72
+ azure_quantum-3.1.1.dev1.dist-info/top_level.txt,sha256=S7DhWV9m80TBzAhOFjxDUiNbKszzoThbnrSz5MpbHSQ,6
73
+ azure_quantum-3.1.1.dev1.dist-info/RECORD,,