Challenge B1
Generate |+⟩ state or |-⟩ state
33 other teams have completed this challenge.
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 the |-⟩ state.
You should implement the following Solve operation to make that happen and keep the signature of the operation exactly as it is.