Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: no 'results' for Docker Simulators #105

Open
renezander90 opened this issue Nov 24, 2024 · 1 comment
Open

Bug: no 'results' for Docker Simulators #105

renezander90 opened this issue Nov 24, 2024 · 1 comment
Assignees

Comments

@renezander90
Copy link
Contributor

Consider the following example:

from qrisp import *
from qrisp.interface import MQTSim, CirqSim, QulacsSim

qf = QuantumFloat(3)
qf[:] = 2

qf.get_measurement(backend = QulacsSim())

Yields:

IndexError: list index out of range

for all 3 simulators (probably also for the other available simulators).

The job_get_response.json() has entry [] for 'results'.

@Nik-SteinFraunh
Copy link
Contributor

all above mentioned SimulatorBackends work, if a "shots" argument is assigned, i.e.:

res = qf.get_measurement(backend = QulacsSim(), shots=100)

This should either be mentioned in the documentation, or adjusted with a default argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants