azure-quantum-python icon indicating copy to clipboard operation
azure-quantum-python copied to clipboard

Submitting QIR jobs ignores number of shots parameter

Open crazy4pi314 opened this issue 2 years ago • 0 comments

If you need to submit a QIR program, the only way I found was the snippet below via the from_input_data.

azure.quantum.Job.from_input_data(
    workspace=workspace,
    name="qir-demo",
    provider_id="rigetti",
    target="rigetti.sim.qvm",
    input_data_format="qir.v1",
    output_data_format="microsoft.quantum-results.v1",
    input_data=bitcode,
    input_params={
        "shots": 100,
        "entryPoint": "main",
        "arguments": []
    }
)

No matter what I changed the shots value to for the input_params, it only returned the job results having done one shot. Not sure, but #302 might be related?

Full demo: https://github.com/crazy4pi314/universe-qir-demo/blob/main/demo.ipynb

crazy4pi314 avatar Nov 30 '22 18:11 crazy4pi314