<filename>nodes/I.2.2/challenge_code.py
"""The code template to supply to the front end. This is what the user will
    be asked to complete and submit for grading.

    Do not include any imports.

    This is not a REPL environment so include explicit 'print' statements
    for any outputs you want to be displayed back to the user.

    Use triple single quotes to enclose the formatted code block.
"""

challenge_code = '''# This creates a device with three wires on which PennyLane can run computations
dev = qml.device("default.qubit", wires=3)


def my_circuit(theta, phi, omega):

    ##################
    # YOUR CODE HERE #
    ##################

    # IMPLEMENT THE CIRCUIT BY ADDING THE GATES

    # Here are two examples, so you can see the format:
    # qml.CNOT(wires=[0, 1])
    # qml.RX(theta, wires=0)
    



    return qml.probs(wires=[0, 1, 2])


# This creates a QNode, binding the function and device
my_qnode = qml.QNode(my_circuit, dev)

# We set up some values for the input parameters
theta, phi, omega = 0.1, 0.2, 0.3

# Now we can execute the QNode by calling it like we would a regular function
my_qnode(theta, phi, omega)
'''

<filename>nodes/I.2.2/challenge_code.py
"""The code template to supply to the front end. This is what the user will
    be asked to complete and submit for grading.

    Do not include any imports.

    This is not a REPL environment so include explicit 'print' statements
    for any outputs you want to be displayed back to the user.

    Use triple single quotes to enclose the formatted code block.
"""

challenge_code = '''# This creates a device with three wires on which PennyLane can run computations
dev = qml.device("default.qubit", wires=3)


def my_circuit(theta, phi, omega):

    ##################
    # YOUR CODE HERE #
    ##################

    # IMPLEMENT THE CIRCUIT BY ADDING THE GATES

    # Here are two examples, so you can see the format:
    # qml.CNOT(wires=[0, 1])
    # qml.RX(theta, wires=0)
    



    return qml.probs(wires=[0, 1, 2])


# This creates a QNode, binding the function and device
my_qnode = qml.QNode(my_circuit, dev)

# We set up some values for the input parameters
theta, phi, omega = 0.1, 0.2, 0.3

# Now we can execute the QNode by calling it like we would a regular function
my_qnode(theta, phi, omega)
'''

The code template to supply to the front end. This is what the user will     be asked to complete and submit for grading.      Do not include any imports.      This is not a REPL environment so include explicit 'print' statements     for any outputs you want to be displayed back to the user.      Use triple single quotes to enclose the formatted code block. # This creates a device with three wires on which PennyLane can run computations dev = qml.device("default.qubit", wires=3)   def my_circuit(theta, phi, omega):      ##################     # YOUR CODE HERE #     ##################      # IMPLEMENT THE CIRCUIT BY ADDING THE GATES      # Here are two examples, so you can see the format:     # qml.CNOT(wires=[0, 1])     # qml.RX(theta, wires=0)             return qml.probs(wires=[0, 1, 2])   # This creates a QNode, binding the function and device my_qnode = qml.QNode(my_circuit, dev)  # We set up some values for the input parameters theta, phi, omega = 0.1, 0.2, 0.3  # Now we can execute the QNode by calling it like we would a regular function my_qnode(theta, phi, omega)