You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there seems to be an issue running jobs with multiple measurement gates in them. For instance the circuit in the following code runs well
from qibo_cloud_backends.qiskit_client import QiskitClientBackend
from qibo.models import Circuit
from qibo import gates
qisk_backend = QiskitClientBackend(token = 'my_token')
d = Circuit(2)
d.add(gates.H(0))
d.add(gates.M(1))
print(qisk_backend.execute_circuit(d).probabilities())
but the circuit in the following code does not
from qibo_cloud_backends.qiskit_client import QiskitClientBackend
from qibo.models import Circuit
from qibo import gates
qisk_backend = QiskitClientBackend(token = 'my_token')
d = Circuit(2)
d.add(gates.H(0))
d.add(gates.M(1))
d.add(gates.M(0))
print(qisk_backend.execute_circuit(d).probabilities())
yielding the error
File "/home/q1/.conda/envs/RQibo/lib/python3.11/site-packages/qibo_cloud_backends/qiskit_client.py", line 55, in execute_circuit
sample = [int(bit) for bit in reversed(state)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/q1/.conda/envs/RQibo/lib/python3.11/site-packages/qibo_cloud_backends/qiskit_client.py", line 55, in <listcomp>
sample = [int(bit) for bit in reversed(state)]
^^^^^^^^
ValueError: invalid literal for int() with base 10: ' '
It seems to me that there's no issue with running the circuit, the processing of the result seems to be broken in this case.
Hi, there seems to be an issue running jobs with multiple measurement gates in them. For instance the circuit in the following code runs well
but the circuit in the following code does not
yielding the error
It seems to me that there's no issue with running the circuit, the processing of the result seems to be broken in this case.
@jykhoo1987
The text was updated successfully, but these errors were encountered: