Allele
By state. Alleles are different by state if they have different DNA sequences. This idea can be adjusted to need. For example, we may judge them as different only if the difference changes the amino acid sequence of a protein.