qiskit-community / prototype-quantum-kernel-training

Toolkit for training quantum kernels in machine learning applications
https://arxiv.org/abs/2105.03406
Apache License 2.0
39 stars 12 forks source link

Error in test_qkt_with_custom_runtime_image.ipnyb #11

Closed dancbeaulieu closed 2 years ago

dancbeaulieu commented 2 years ago

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?

caleb-johnson commented 2 years ago

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?

dancbeaulieu commented 2 years ago

Hi,

I completed my testing and submitted the rest of my results through the survey mentioned on the GitHub. A few more Deloitte consultants will be testing the tool. Happy to meet and discuss, we wish to use the Quantum Kernel Training prototype tool for some publications we want to create, but need a little clarification on some of the documentation and ways to improve our research.

Daniel Beaulieu Specialist Master @.**@.>

From: Caleb Johnson @.> Reply-To: IBM-Quantum-Prototypes/quantum-kernel-training @.> Date: Monday, January 24, 2022 at 9:49 AM To: IBM-Quantum-Prototypes/quantum-kernel-training @.> Cc: "Beaulieu, Daniel" @.>, Author @.***> Subject: [EXT] Re: [IBM-Quantum-Prototypes/quantum-kernel-training] Error in test_qkt_with_custom_runtime_image.ipnyb (Issue #11)

Hi Dan, thanks for the feedback. We are developing the kernel training runtime and have removed that 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?

— Reply to this email directly, view it on GitHubhttps://secure-web.cisco.com/1Vq8J5VM7PBeLGLiB9xWM9L5KiarlNL8Lc_omd-FS4jYpZQe_Mc36CUc51CIlG-f-DSUC-Mt5MF8yg-PbNYAdvWesTovKoRlBYayvqsnGm0YKFoZhtq6tzU86UqxDfFXo1CqfLXasateOj_PKGICthAkpN7_hmO5ItbbZGspuWg9guIkqx-s_wbaKtySP5vvSSPfuMQ4BoDfHlwYEJM_0F6B7aCrmVL6Hv8WhtXg9oRwI0Ay8c856zPHcweCI_EsG1QAn5A9iysRUvFKCmYLmaauY1J5bMWArviPq9hGwZLnLUERc_mMJ9dBM89NcMmbvMToEqbL2PdNrd6e2P_n6rm44xTBhuOJMs3f00L07HaUcPnCSQi3b4bvdhQlo60HvVKCx0gyx5fgJ9x3xRk8Bt3cpFpFDQ9iuKU4ynyxytJTCIWZKAs8x8LV5vx1zsYtitNTIJWV9h6_0ta43wm48lNBpxuLZD2U_-mACt5vpGn2ErW6r5Uzp7Bs8JdFfQOlIL7az402XF2m5bdql9_HUIQ/https%3A%2F%2Fgithub.com%2FIBM-Quantum-Prototypes%2Fquantum-kernel-training%2Fissues%2F11%23issuecomment-1020178788, or unsubscribehttps://secure-web.cisco.com/1MNNqc1Kvn-mdSuyNYnpUpweE8RrktqF0UW-ZblL5A6Zn7n7dpv_XWupVqH_aLh3sOD-hyrcSe6TlTNU3jnmpiAuO8e_iKgg6kqGWbo2Mm0YU39p6HCL7U6w74sN7A_WiFtgWmWPFM2Bm9q9H-S0pECgm1PelsS40f-CpVuwiWe8J9v_OwcI4BGj1K5yODdIGluXTnaJ1MMA4nKhSLXDNdTW_gezsXUtQymKfys-xGC6S7QxTUHYDzgPlbTeOm4iLvVx1DnX3LNx8jvQtKxxchSEfd14suwIzsl92zEiCVUsmwjktKo1pZ0RtVwT-4xclRgkyvS9one4vblrQaFPolYgq6s0sTRYLZTGeCndNSNmV1aKgfPyuMA9l1t61YX6qWK0uA9QfpZWVydcEriE6wV-kcDqlyDNJF2lXifkw2Bd6lkJrCKERp_IGB1j6a53HapuAJt-pk2kkoU9rUIsl_pliCMoAzWyfF-qutHNefwBQp9rve2VfzAqDwhk6voXqPOLw8dzfWYCAtp3p16DaSQ/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATJ35MKPEJUEIB2OBUVDM2TUXVRH7ANCNFSM5MSDY6TA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.

Deloitte refers to a Deloitte member firm, one of its related entities, or Deloitte Touche Tohmatsu Limited ("DTTL"). Each Deloitte member firm is a separate legal entity and a member of DTTL. DTTL does not provide services to clients. Please see www.deloitte.com/about to learn more.

v.E.1

dancbeaulieu commented 2 years ago

I apologize,

Was there a request for me to perform a action in your last item? Didn’t see the test_qkt_with_custom_runtime_image.ipynb in the repository when I pulled it again.

Daniel Beaulieu Specialist Master @.**@.>

From: Caleb Johnson @.> Reply-To: IBM-Quantum-Prototypes/quantum-kernel-training @.> Date: Monday, January 24, 2022 at 9:49 AM To: IBM-Quantum-Prototypes/quantum-kernel-training @.> Cc: "Beaulieu, Daniel" @.>, Author @.***> Subject: [EXT] Re: [IBM-Quantum-Prototypes/quantum-kernel-training] Error in test_qkt_with_custom_runtime_image.ipnyb (Issue #11)

Hi Dan, thanks for the feedback. We are developing the kernel training runtime and have removed that 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?

— Reply to this email directly, view it on GitHubhttps://secure-web.cisco.com/1Vq8J5VM7PBeLGLiB9xWM9L5KiarlNL8Lc_omd-FS4jYpZQe_Mc36CUc51CIlG-f-DSUC-Mt5MF8yg-PbNYAdvWesTovKoRlBYayvqsnGm0YKFoZhtq6tzU86UqxDfFXo1CqfLXasateOj_PKGICthAkpN7_hmO5ItbbZGspuWg9guIkqx-s_wbaKtySP5vvSSPfuMQ4BoDfHlwYEJM_0F6B7aCrmVL6Hv8WhtXg9oRwI0Ay8c856zPHcweCI_EsG1QAn5A9iysRUvFKCmYLmaauY1J5bMWArviPq9hGwZLnLUERc_mMJ9dBM89NcMmbvMToEqbL2PdNrd6e2P_n6rm44xTBhuOJMs3f00L07HaUcPnCSQi3b4bvdhQlo60HvVKCx0gyx5fgJ9x3xRk8Bt3cpFpFDQ9iuKU4ynyxytJTCIWZKAs8x8LV5vx1zsYtitNTIJWV9h6_0ta43wm48lNBpxuLZD2U_-mACt5vpGn2ErW6r5Uzp7Bs8JdFfQOlIL7az402XF2m5bdql9_HUIQ/https%3A%2F%2Fgithub.com%2FIBM-Quantum-Prototypes%2Fquantum-kernel-training%2Fissues%2F11%23issuecomment-1020178788, or unsubscribehttps://secure-web.cisco.com/1MNNqc1Kvn-mdSuyNYnpUpweE8RrktqF0UW-ZblL5A6Zn7n7dpv_XWupVqH_aLh3sOD-hyrcSe6TlTNU3jnmpiAuO8e_iKgg6kqGWbo2Mm0YU39p6HCL7U6w74sN7A_WiFtgWmWPFM2Bm9q9H-S0pECgm1PelsS40f-CpVuwiWe8J9v_OwcI4BGj1K5yODdIGluXTnaJ1MMA4nKhSLXDNdTW_gezsXUtQymKfys-xGC6S7QxTUHYDzgPlbTeOm4iLvVx1DnX3LNx8jvQtKxxchSEfd14suwIzsl92zEiCVUsmwjktKo1pZ0RtVwT-4xclRgkyvS9one4vblrQaFPolYgq6s0sTRYLZTGeCndNSNmV1aKgfPyuMA9l1t61YX6qWK0uA9QfpZWVydcEriE6wV-kcDqlyDNJF2lXifkw2Bd6lkJrCKERp_IGB1j6a53HapuAJt-pk2kkoU9rUIsl_pliCMoAzWyfF-qutHNefwBQp9rve2VfzAqDwhk6voXqPOLw8dzfWYCAtp3p16DaSQ/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATJ35MKPEJUEIB2OBUVDM2TUXVRH7ANCNFSM5MSDY6TA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.

Deloitte refers to a Deloitte member firm, one of its related entities, or Deloitte Touche Tohmatsu Limited ("DTTL"). Each Deloitte member firm is a separate legal entity and a member of DTTL. DTTL does not provide services to clients. Please see www.deloitte.com/about to learn more.

v.E.1

caleb-johnson commented 2 years ago

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.