iqm-finland / qiskit-on-iqm

Qiskit adapter for IQM's quantum computers
https://iqm-finland.github.io/qiskit-on-iqm/
Apache License 2.0
22 stars 6 forks source link

get_dynamic_quantum_architecture doesn't work properly #121

Open Eyal-Leviatan opened 3 weeks ago

Eyal-Leviatan commented 3 weeks ago

` from iqm import qiskit_iqm

server_url = "https://cocos.resonance.meetiqm.com/garnet" api_token="..."

provider = qiskit_iqm.IQMProvider(server_url, token=api_token) backend = provider.get_backend() client = backend.client client.get_dynamic_quantum_architecture() `

returns: HTTPError: 404 Client Error: Not Found for url: https://cocos.resonance.meetiqm.com/garnet/api/quantum-computers/v1/calibration/default/gates

freetonik commented 3 weeks ago

Hello, IQM Resonance is not using the latest version of IQM server software, and does not support dynamic quantum architecture yet.

Eyal-Leviatan commented 3 weeks ago

I was looking for calibration information. I was able to get it by running:

result = requests.get( join("https://api.resonance.meetiqm.com/quantum-computers/v1/garnet/calibrations"), headers=client._default_headers() ).json()

Is there a higher-level functionality of IQMClient that does this for me?

JMuff22 commented 3 weeks ago

An implementation was added here https://github.com/iqm-finland/iqm-client/pull/91 for reference. As far as I am aware there is no in built functionality for this in IQMClient and I have used the method you showed above.

Eyal-Leviatan commented 3 weeks ago

Right, but the URL there (os.path.join(self._base_url, 'calibration')) will not work, since _base_rul is "https://cocos.resonance.meetiqm.com/garnet" (as per the documentation of how to send jobs). It works for: _base_url = "https://api.resonance.meetiqm.com/quantum-computers/v1/garnet" though.

Thanks anyway

Aerylia commented 1 day ago

Thank you for reporting this. We have added this to our backlog to improve the error messaging (SW-767) and obtaining calibration data and quality metrics (SW-766).