Designing Quantum Memories with Embedded Control: Photonic Circuits for Autonomous Quantum Error Correction | Synapse