Challenge B1

Generate |+⟩ state or |-⟩ state
You need to login to be able to submit solutions!

You have to implement an operation which takes a qubit that has been prepared in the |0⟩ state and an integer that specifies the desired sign: +1 for the |+⟩ state and -1 for |-⟩ state.

You should implement the following Solve operation to make that happen and keep the signature of the operation exactly like it is.

An unhandled error has occurred. Reload 🗙