Flux and phase qubits: techniques of operation