- Find at least one other state that is a separable state, but for which get_qubits_from_state fails to work.
- For the state you found in question 1, modify the code in get_qubits_from_state to work.
- You have designed a new quantum computer, and the probability of finding a qubit still in state |"1"> after 0.1 milliseconds is 0.7%. What is T1 for this computer?
- Quantum computer A has a T1 of 63 µs and a T2 of 60 µs, while quantum computer B has a T1 of 70 µs and a T2 of 78 µs. Both A and B can operate on the same number of qubits. In the absence of further information, which quantum computer would you prefer?
- Change the measure_in_01_basis algorithm to measure a state in the |"0"> and |"1"> basis to return the state itself, instead of printing the string (mathematical) description of the state.
- Create a class or a function that ensures that once a state is measured, any subsequent measurement always returns the same result. This function should follow the specifications of measure_in_01_basis_collapse given in this chapter.