Skip to content

Commit

Permalink
feat(version): created prerelease so that it can be qtested
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierSab committed Oct 9, 2024
1 parent 5a7f8fb commit e90c718
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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.22.1"
__version__ = "0.23.0-alpha.0"


from .about import about
Expand Down
4 changes: 2 additions & 2 deletions src/qiboconnection/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def execute( # pylint: disable=too-many-locals, disable=too-many-branches
self,
circuit: Circuit | List[Circuit] | None = None,
qprogram: str | None = None,
anneal_program_args: str | None = None,
anneal_program_args: dict | None = None,
vqa: VQA | None = None,
nshots: int = 10,
device_ids: List[int] | None = None,
Expand All @@ -316,7 +316,7 @@ def execute( # pylint: disable=too-many-locals, disable=too-many-branches
Args:
circuit (Circuit or List[Circuit]): a Qibo circuit to execute
qprogram (str): a QProgram description, result of Qililab utils `serialize(qprogram)` function.
anneal_program_args (str): an annealing implementation. It is supposed to contain a dict with everything needed for a platform.
anneal_program_args (dict): an annealing implementation. It is supposed to contain a dict with everything needed for a platform.
vqa (dict): a Variational Quantum Algorithm, result of applications-sdk' VQA.to_dict() method.
nshots (int): number of times the execution is to be done.
device_ids (List[int]): list of devices where the execution should be performed. If set, any device set
Expand Down
4 changes: 2 additions & 2 deletions src/qiboconnection/models/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from qiboconnection.typings.requests import CalibrationRequest
from qiboconnection.typings.responses import CalibrationResponse
from qiboconnection.util import base64_decode, jsonify_dict_and_base64_encode
from qiboconnection.util import base64_decode, base64url_encode, jsonify_dict_and_base64_encode


# pylint: disable=too-many-instance-attributes
Expand All @@ -38,7 +38,7 @@ def __init__(self, **kwargs):
@property
def _encoded_calibration(self):
"""return base64-encoded stringified jsonified experiment"""
return jsonify_dict_and_base64_encode(self.calibration) if self.calibration is not None else None
return base64url_encode(self.calibration) if self.calibration is not None else None

@classmethod
def from_response(cls, response: CalibrationResponse):
Expand Down
2 changes: 1 addition & 1 deletion src/qiboconnection/models/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Job(ABC): # pylint: disable=too-many-instance-attributes
program: ProgramDefinition | None = field(default=None)
circuit: list[Circuit] | None = None
qprogram: str | None = None
anneal_program_args: str | None = None
anneal_program_args: dict | None = None
vqa: VQA | None = None
nshots: int = 10
job_status: JobStatus = JobStatus.NOT_SENT
Expand Down

0 comments on commit e90c718

Please sign in to comment.