Quantum states generation and manipulation in a programmable silicon-photonic four-qubit system with high-fidelity and purity | Synapse