def phase2t(self, psi):
def _deg(rads, domain_lower_limit):<EOL><INDENT>degs = degrees(rads % (<NUM_LIT:2>*pi))<EOL>k = domain_lower_limit // <NUM_LIT><EOL>degs += k * <NUM_LIT><EOL>if degs < domain_lower_limit:<EOL><INDENT>degs += <NUM_LIT><EOL><DEDENT>return degs<EOL><DEDENT>if self.delta > <NUM_LIT:0>:<EOL><INDENT>degs = _deg(psi, domain_lower_limit=self.theta)<EOL><DEDENT>else:<EOL><INDENT>degs = _deg(psi, domain_lower_limit=self.theta)<EOL><DEDENT>return (degs - self.theta)/self.delta<EOL>
Given phase -pi < psi <= pi,
        returns the t value such that
        exp(1j*psi) = self.u1transform(self.point(t)).