"""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 = '''dev = qml.device("default.qubit", wires=1)

@qml.qnode(dev)
def apply_z_to_plus():
    """Write a circuit that applies PauliZ to the |+> state and returns
    the state.

    Returns:
        array[complex]: The state of the qubit after the operations.
    """

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

    # CREATE THE |+> STATE

    # APPLY PAULI Z

    # RETURN THE STATE
    return

print(apply_z_to_plus())
'''

"""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 = '''dev = qml.device("default.qubit", wires=1)

@qml.qnode(dev)
def apply_z_to_plus():
    """Write a circuit that applies PauliZ to the |+> state and returns
    the state.

    Returns:
        array[complex]: The state of the qubit after the operations.
    """

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

    # CREATE THE |+> STATE

    # APPLY PAULI Z

    # RETURN THE STATE
    return

print(apply_z_to_plus())
'''

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. dev = qml.device("default.qubit", wires=1)  @qml.qnode(dev) def apply_z_to_plus():     """Write a circuit that applies PauliZ to the |+> state and returns     the state.      Returns:         array[complex]: The state of the qubit after the operations.     """      ##################     # YOUR CODE HERE #     ##################      # CREATE THE |+> STATE      # APPLY PAULI Z      # RETURN THE STATE     return  print(apply_z_to_plus())