Computing local invariants of quantum-bit systems | Synapse