A trial by jury shall be had if demanded by either the state or defendant if otherwise authorized by law.
A.R.S. § 22-320