Determining the Photoisomerization Quantum Yield of Photoswitchable Molecules in Solution and in the Solid State | Synapse