iqm-client 25.1.0__py3-none-any.whl → 25.2.0__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.
@@ -354,7 +354,10 @@ class IQMClient:
354
354
  ID for the created job. This ID is needed to query the job status and the execution results.
355
355
 
356
356
  """
357
- headers = {"Expect": "100-Continue", **self._default_headers()}
357
+ headers = {
358
+ "Expect": "100-Continue",
359
+ **self._default_headers(),
360
+ }
358
361
  try:
359
362
  # check if someone is trying to profile us with OpenTelemetry
360
363
  from opentelemetry import propagate
@@ -367,11 +370,12 @@ class IQMClient:
367
370
  if os.environ.get("IQM_CLIENT_DEBUG") == "1":
368
371
  print(f"\nIQM CLIENT DEBUGGING ENABLED\nSUBMITTING RUN REQUEST:\n{run_request}\n")
369
372
 
373
+ # use UTF-8 encoding for the JSON payload
370
374
  result = self._retry_request_on_error(
371
375
  lambda: requests.post(
372
376
  self._api.url(APIEndpoint.SUBMIT_JOB),
373
- json=json.loads(run_request.model_dump_json(exclude_none=True)),
374
- headers=headers,
377
+ data=run_request.model_dump_json(exclude_none=True).encode("utf-8"),
378
+ headers=headers | {"Content-Type": "application/json; charset=UTF-8"},
375
379
  timeout=REQUESTS_TIMEOUT,
376
380
  )
377
381
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-client
3
- Version: 25.1.0
3
+ Version: 25.2.0
4
4
  Summary: Client library for accessing an IQM quantum computer
5
5
  Author-email: IQM Finland Oy <developers@meetiqm.com>
6
6
  License: Apache License
@@ -21,7 +21,7 @@ iqm/iqm_client/__init__.py,sha256=D-8W54EcQIxk_1JZo_86GYlR1YitHhPIiFwwLJ2IfGE,14
21
21
  iqm/iqm_client/api.py,sha256=V57vslYSn5g1IgXWtWuxp3hD1DbY18dKUexRdxEuX78,8268
22
22
  iqm/iqm_client/authentication.py,sha256=Zbc5DpTwrcwNePKyZ_7KAFxwQFSVyZelQR_CWRCmlME,12187
23
23
  iqm/iqm_client/errors.py,sha256=ty2P-sg80zlAoL3_kC3PlprgDUv4PI-KFhmmxaaapS0,1429
24
- iqm/iqm_client/iqm_client.py,sha256=WEJkQqyOpuZKNQ-FPD3sPsvVfrpgkR8Vp9Kpw89gw-E,50504
24
+ iqm/iqm_client/iqm_client.py,sha256=w6jhi70MorKMCiASu706Y_PORCSE_3R-F_h8q5bugnw,50647
25
25
  iqm/iqm_client/models.py,sha256=YjlerNleeE1kOmzRsux-o02h7XSqv0u0KQEERufdxKk,50302
26
26
  iqm/iqm_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  iqm/iqm_client/transpile.py,sha256=-iIZaxaTaQLy6pMkRG15VN8X1ZE_iNhX3pjsNjqg6P8,36935
@@ -56,10 +56,10 @@ iqm/qiskit_iqm/fake_backends/fake_apollo.py,sha256=eT2vd3kQBi1rrvxCpePymBCfFK84d
56
56
  iqm/qiskit_iqm/fake_backends/fake_deneb.py,sha256=RzQXmLXmBARDiMKVxk5Aw9fVbc6IYlW0A5jibk9iYD0,3156
57
57
  iqm/qiskit_iqm/fake_backends/fake_garnet.py,sha256=GI0xafTCj1Um09qVuccO6GPOGBm6ygul_O40Wu220Ys,5555
58
58
  iqm/qiskit_iqm/fake_backends/iqm_fake_backend.py,sha256=wJtfsxjPYbDKmzaz5R4AuaXvvPHa21WyPtRgNctL9eY,16785
59
- iqm_client-25.1.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
60
- iqm_client-25.1.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
61
- iqm_client-25.1.0.dist-info/METADATA,sha256=ngNbRgXiX4Yk3OYXN2MWdYX6cUhx8j_pGGhli-_rLns,17079
62
- iqm_client-25.1.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
63
- iqm_client-25.1.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
64
- iqm_client-25.1.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
65
- iqm_client-25.1.0.dist-info/RECORD,,
59
+ iqm_client-25.2.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
60
+ iqm_client-25.2.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
61
+ iqm_client-25.2.0.dist-info/METADATA,sha256=XOVnYXYoVM8N1Nld_jDXAVELROOcY-DyFcgcTAGz7W0,17079
62
+ iqm_client-25.2.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
63
+ iqm_client-25.2.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
64
+ iqm_client-25.2.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
65
+ iqm_client-25.2.0.dist-info/RECORD,,