Complete the circuit_as_function
QNode below that implements the quantum circuit shown below and
returns the expectation value params
argument of circuit_as_function
is an
np.ndarray
representing
The backend will then plot a cross-section of the circuit, where the angles
and the output_values
. With the given definition of output_values
, all the parameters are constant except the angle angles
and output_values
so check how the circuit depends on different variables!
To interact with codercises, please switch to a larger screen size.
Learning Objectives: