qiskit-community/prototype-quantum-kernel-training

Error in test_qkt_with_custom_runtime_image.ipnyb

Closed this issue · 4 comments

Describe the bug
There is an error in the notebook on the line where runtime is invoked for provider call. Not sure if I am lacking access, or what the issue is.

job = provider.runtime.run(program_id="quantum-kernel-trainer-39vqXArNdB",
                           options=options,
                           image="quantum-kernel-trainer:latest",
                           inputs=runtime_inputs
                          )
TypeError: Object of type QuantumKernel is not JSON serializable

To Reproduce
Run

job = provider.runtime.run(program_id="quantum-kernel-trainer-39vqXArNdB",
                           options=options,
                           image="quantum-kernel-trainer:latest",
                           inputs=runtime_inputs
                          )

Expected behavior
Should run with out error.

Any suggestions?
Perhaps I don't have access to the quantum kernel image?

Hi Dan, thanks for the feedback. We are still developing the kernel training runtime, so I have removed that test notebook for the time being.

Could you please pull the main branch and ensure that test_qkt_with_custom_runtime_image.ipynb is removed from your local repository?

Hey Daniel, there was nothing additional needed from you on this! The test should not have been included in this repository. Thanks again for the feedback.

Happy to answer any questions or provide any clarifications via Git Issues/Discussions or via email. Happy to field discussion here on Git, but I want to emphasize that these Git conversations will become public when the repository goes public.