Updating basic example in doc

This commit is contained in:
Vinitha Balachandran
2025-01-10 17:20:45 +08:00
parent 48c6775aa1
commit be40912c4e

View File

@@ -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)