Bench trial
The state court systems have different rules.  For example, Missouri has Missouri Supreme Court Rule 27.01(b), "The defendant may, with the assent of the court, waive a trial by jury and submit the trial of any criminal case to the court..." Missouri does not have a rule saying the government must agree.