Skip to content

Commit

Permalink
Releases/0.16.x (#146)
Browse files Browse the repository at this point in the history
* changelog

* changelog

* qporgram results

* Revert "changelog"

This reverts commit 310fb25.

* return QProgramResults instead of dict

* fix unit tests

* fix unit tests

* code quality

* qiiboconnection 0.16.3

* return dict instead of qililab class

* 0.16.4 ready

* 0.16.5
  • Loading branch information
ziiiki authored Mar 1, 2024
1 parent 3a4134c commit ab2ddcb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

### Features

- Add optional environment variables QUANTUM_SERVICE_URL and AUDIENCE_URL for a multi-client public API
- job name and summary
[#145](https://github.com/qilimanjaro-tech/qiboconnection/pull/145)

- Job cancellation
[#142](https://github.com/qilimanjaro-tech/qiboconnection/pull/142)

- Add environment variables QUANTUM_SERVICE_URL and AUDIENCE_URL for a multi-client public API
[#136](https://github.com/qilimanjaro-tech/qiboconnection/pull/136/files)

## 0.15.3
Expand All @@ -11,6 +17,13 @@

- Introduction of QProgram [#139](https://github.com/qilimanjaro-tech/qiboconnection/pull/139)

## 0.16.0

### Features

- Job cancellation
[#142](https://github.com/qilimanjaro-tech/qiboconnection/pull/142)

## 0.15.1

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion src/qiboconnection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"""


__version__ = "0.16.0"
__version__ = "0.16.5"


from .about import about
Expand Down
6 changes: 4 additions & 2 deletions src/qiboconnection/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,16 @@ def decode_results_from_circuit(http_response: str) -> CircuitResult | dict:


def decode_results_from_qprogram(http_response: str) -> dict:
"""Decode the results from the Qililab experiment execution
"""Decode the results from QProgram execution.
Args:
http_response (str): the execution results as an Http Response
Returns:
dict: object containing a serialized representation of a qililab Results object
dict: qprogram results
"""

return decode_jsonified_dict(http_response)


Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_job_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ def test_job_result_creation():


def test_job_result_qprogram_works():
"""Test we are rising exceptions to inform correctly that PROGRAMS are not currently supported."""
"""Test QProgrom results are returned as dicts"""

job_result = JobResult(
job_id=0,
http_response="W3sicHJvYmFiaWxpdGllcyI6IHsiMCI6IDAuNTEsICIxIjogMC40OX19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjY0OSwgIjEiOiAwLjM1MX19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjU3MiwgIjEiOiAwLjQyOH19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjYzNywgIjEiOiAwLjM2M319LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjY5MSwgIjEiOiAwLjMwOX19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjcwOCwgIjEiOiAwLjI5Mn19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjY4MSwgIjEiOiAwLjMxOX19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjY4NiwgIjEiOiAwLjMxNH19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjY2NSwgIjEiOiAwLjMzNX19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjcwNCwgIjEiOiAwLjI5Nn19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjYzOCwgIjEiOiAwLjM2Mn19LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjYzLCAiMSI6IDAuMzd9fSwgeyJwcm9iYWJpbGl0aWVzIjogeyIwIjogMC43LCAiMSI6IDAuM319LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjY5MywgIjEiOiAwLjMwN319LCB7InByb2JhYmlsaXRpZXMiOiB7IjAiOiAwLjcw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zIjogInJlYWRvdXRfcTBfYnVzIiwgIndlaWdodHMiOiB7InR5cGUiOiAiSVFQYWlyIiwgImF0dHJpYnV0ZXMiOiB7IkkiOiB7InR5cGUiOiAiU3F1YXJlIiwgImF0dHJpYnV0ZXMiOiB7ImFtcGxpdHVkZSI6IDEuMCwgImR1cmF0aW9uIjogMjAwMH19LCAiUSI6IHsidHlwZSI6ICJTcXVhcmUiLCAiYXR0cmlidXRlcyI6IHsiYW1wbGl0dWRlIjogMS4wLCAiZHVyYXRpb24iOiAyMDAwfX19fSwgIm5hbWUiOiBudWxsfX0sIHsidHlwZSI6ICJXYWl0IiwgImF0dHJpYnV0ZXMiOiB7Il91dWlkIjogeyJ0eXBlIjogIlVVSUQiLCAidXVpZCI6ICIzMzU0MzA3ZS1lNDk1LTQzYTMtYTgyNS0xOWRhM2U3MTEwNGUifSwgImJ1cyI6ICJyZWFkb3V0X3EwX2J1cyIsICJkdXJhdGlvbiI6IDEwMDAwfX1dfSwgInZhcmlhYmxlIjogeyJ0eXBlIjogIkZsb2F0VmFyaWFibGUiLCAiYXR0cmlidXRlcyI6IHsiX3V1aWQiOiB7InR5cGUiOiAiVVVJRCIsICJ1dWlkIjogIjYzNWRmN2NhLWNlMzgtNGQ2Mi05ZmVkLTdmMWNiYWY3MWU3OSJ9LCAiX3NvdXJjZSI6IHsidHlwZSI6ICJWYWx1ZVNvdXJjZSIsICJhdHRyaWJ1dGVzIjogeyJ2YWx1ZSI6ICJGcmVlIn19LCAiX3ZhbHVlIjogbnVsbCwgIl9kb21haW4iOiB7InR5cGUiOiAiRG9tYWluIiwgImF0dHJpYnV0ZXMiOiB7InZhbHVlIjogIlZvbHRhZ2UifX19fSwgInN0YXJ0IjogMC4wLCAic3RvcCI6IDEuMCwgInN0ZXAiOiAwLjF9fV19LCAic2hvdHMiOiAxMDAwfX1dfX19XX19fQ==",
job_type="qprogram",
)
assert isinstance(job_result.data, (dict | list))
assert isinstance(job_result.data, dict)


def test_job_result_program_raises_error():
Expand Down

0 comments on commit ab2ddcb

Please sign in to comment.