Clone Project strangeworks

Related Posts

Like Rubik's Cube, but Quantum. Become a master single-qubit gates.

Rubik's Cube

This is a basic problem to get you started with one-qubit quantum circuit operations using QASM.

To solve this RubiQ's Sphere problem, you need to rotate the state so it reads $0$ with probability $1$ when ran regularly for more than 10 iterations

To make it simpler, know that the solution will be just a combination of the following gates.

z qubit;   		// pi rotation about the Z-axis
x qubit;			// pi rotation about the X-axis
y qubit;			// pi rotation about the Y-axis
h qubit;          // The combination of two rotations, pi about the Z-axis followed by pi/2 about the Y-axis
s qubit; 			// S-gate, square root of Z gate
sdg qubit; 		// conjugate of S-gate
t qubit; 			// Phase-gate, conjugate of square root of S-gate
tdg qubit; 		// conjugate of Phase-gate

Do some trial error mixing them up, until you get the solution!

For more details on QASM, check out its documentation here.