Geometric method in quantum control