The three-justice panel ruled Monday that San Diego County Superior Court Judge David M. Gill used an incorrect legal standard to reach his ruling that Alvin Ray Quarles, 57, should be released to a supervised home somewhere in San Diego County, where he would undergo treatment through a conditional release program.