Fig. 2: Construction methods of basic units and fundamental logic.

a Schematic of the bistable chiral origami with a magnetic cap and its two stable states. b Torque required to fold the left-handed and right-handed origami and magnetic torque versus cap rotation angle |Δφ| at given magnetic field (α = 100°, B = 16 mT). The critical torque required for the left-handed origami to complete the transition is −2.98 N mm, with a critical rotation angle of −12.68°. For the right-handed origami, the critical torque is 2.78 N mm, with a critical rotation angle of 12.52°. Clockwise directions are defined as negative, and counterclockwise directions as positive. c Relationship between the magnitude and direction of the critical external magnetic field required for a right-handed origami-based Buffer unit to transition from stable state 2 to stable state 1. d Logical schematic and structural design of Buffer and Not units. Clockwise torque is indicated by pink arrows, and counterclockwise torque by blue arrows. e Relationship between the magnitude and direction of the critical external magnetic field required for two Buffer units to transition from the initial state (00) to the other three states. f Logical schematic, structural design, and Boolean response of the AND gate and OR gate under four states, with digital output represented by the conductivity of internal wires as indicated by the illumination of a series-connected LED. g Logical schematic, truth table, structural design, and Boolean response at Set and Reset states.