Challenge #6

Suppose you have a quantum bit (qubit) in the state |0>, and apply the following gates:

X (NOT)
Y
Z
H (Hadamard gate)

Next, you perform a measurement along the Z axis, which results in a classical bit value. What is the probability that the output of this measurement is 1, in percent? Round up to the nearest whole percent.

Image based on: https://en.wikipedia.org/wiki/Quantum_logic_gate#/media/File:Bloch_sphere.svg


(Hint: you can implement and run the algorithm for example using Microsoft's Q# language: https://docs.microsoft.com/en-us/azure/quantum/tutorial-qdk-explore-entanglement)

Puzzle made by:


Erik Lydersen
Lead Consultant 

Erik is a .NET developer and consultant in Visma Consulting. He has a background in physics from NTNU in Trondheim, Norway.