<filename>nodes/I.9.2b/challenge_code.py<gh_stars>10-100
"""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 measure_in_y_basis():
    ##################
    # YOUR CODE HERE #
    ##################
    
    # PREPARE THE STATE

    # PERFORM THE ROTATION BACK TO COMPUTATIONAL BASIS

    # RETURN THE MEASUREMENT OUTCOME PROBABILITIES

    return 

print(measure_in_y_basis())
'''

<filename>nodes/I.9.2b/challenge_code.py<gh_stars>10-100
"""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 measure_in_y_basis():
    ##################
    # YOUR CODE HERE #
    ##################
    
    # PREPARE THE STATE

    # PERFORM THE ROTATION BACK TO COMPUTATIONAL BASIS

    # RETURN THE MEASUREMENT OUTCOME PROBABILITIES

    return 

print(measure_in_y_basis())
'''

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 measure_in_y_basis():     ##################     # YOUR CODE HERE #     ##################          # PREPARE THE STATE      # PERFORM THE ROTATION BACK TO COMPUTATIONAL BASIS      # RETURN THE MEASUREMENT OUTCOME PROBABILITIES      return   print(measure_in_y_basis())