Theta function

Create a new Theta instance with validation.