Is this considered cheating?

If you're legally married but problems arose and you no longer live together or wear rings but you sleep with another person? <---I left out that part in first post my bad