From be40912c4eb67ece038bed7d88c6d461bd8f093c Mon Sep 17 00:00:00 2001 From: Vinitha Balachandran Date: Fri, 10 Jan 2025 17:20:45 +0800 Subject: [PATCH] Updating basic example in doc --- doc/source/getting-started/quickstart.rst | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/source/getting-started/quickstart.rst b/doc/source/getting-started/quickstart.rst index 4e9c1a5..b36e5f6 100644 --- a/doc/source/getting-started/quickstart.rst +++ b/doc/source/getting-started/quickstart.rst @@ -48,11 +48,9 @@ Basic example """"""""""""" The following is a basic example to execute a two qubit circuit and print the final state in dense vector form using quimb backend:: - - # Set the quimb backend - qibo.set_backend( - backend="qibotn", platform="qutensornet", runcard=computation_settings - ) + + import qibo + from qibo import Circuit, gates # Set the runcard computation_settings = { @@ -62,6 +60,13 @@ The following is a basic example to execute a two qubit circuit and print the fi "expectation_enabled": False, } + + # Set the quimb backend + qibo.set_backend( + backend="qibotn", platform="qutensornet", runcard=computation_settings + ) + + # Construct the circuit with two qubits c = Circuit(2)