From 243620e817be5a7270c9969053b079f11e28477f Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Tue, 10 Dec 2024 09:27:01 +0400 Subject: [PATCH] fix doc --- doc/source/code-examples/advancedexamples.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/code-examples/advancedexamples.rst b/doc/source/code-examples/advancedexamples.rst index 21e25e2465..6e1abee90d 100644 --- a/doc/source/code-examples/advancedexamples.rst +++ b/doc/source/code-examples/advancedexamples.rst @@ -802,6 +802,8 @@ using the ``pytorch`` framework. import torch from qibo import Circuit, gates, set_backend + from qibo.quantum_info.metrics import infidelity + set_backend(backend="qiboml", platform="pytorch") # Optimization parameters