azure-quantum-python
azure-quantum-python copied to clipboard
Submitting QIR jobs ignores number of shots parameter
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