Quantum logical states and operators for Josephson-like systems