diff --git a/doc/source/code-examples/examples.rst b/doc/source/code-examples/examples.rst index b958dbb42a..e614445332 100644 --- a/doc/source/code-examples/examples.rst +++ b/doc/source/code-examples/examples.rst @@ -23,6 +23,8 @@ Here is an example of a circuit with 2 qubits: # Execute the circuit and obtain the final state result = c(initial_state) # c.execute(initial_state) also works print(result.state()) + # should print `tf.Tensor([1, 0, 0, 0])` + print(result.state()) # should print `np.array([1, 0, 0, 0])` .. testoutput:: :hide: