Updating basic example in doc
This commit is contained in:
@@ -49,10 +49,8 @@ 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::
|
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
|
import qibo
|
||||||
qibo.set_backend(
|
from qibo import Circuit, gates
|
||||||
backend="qibotn", platform="qutensornet", runcard=computation_settings
|
|
||||||
)
|
|
||||||
|
|
||||||
# Set the runcard
|
# Set the runcard
|
||||||
computation_settings = {
|
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,
|
"expectation_enabled": False,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Set the quimb backend
|
||||||
|
qibo.set_backend(
|
||||||
|
backend="qibotn", platform="qutensornet", runcard=computation_settings
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# Construct the circuit with two qubits
|
# Construct the circuit with two qubits
|
||||||
c = Circuit(2)
|
c = Circuit(2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user