What problem does it solve? Preparing an arbitrary complex quantum state on a quantum register requires a precise gate schedule, and hand-building one invites subtle errors in normalization, bit ordering, control values, and phase loading. This Skill documents and reproduces the UnitaryLab Multiplexer state-preparation algorithm so you can explain, run, debug, or reimplement it faithfully. ## Core Features & Use Cases - Repository-faithful algorithm contract: Documents normalization-before-padding, one internal bit reversal, recursive binary probability-tree RY/CRY/MCRY gates, and basis-selective phase loading, plus the exact run() parameters and return fields. - Reference implementations: Includes a formal-class example script and an independent educational implementation of the magnitude tree, phase loading, validation, and return contract. - Debugging and validation guidance: Covers control-value ordering, zero-mass branches, endianness, global-phase-invariant error, fidelity, and dense-simulation limits. - Use Case: Given a target vector like [1, 1j, 1, -1j]/2 and target_qubits=2, run MultiplexerAlgorithm().run(...) to obtain the prepared state, total error, and flattened circuit, then verify the result with phase-invariant error metrics. ## Quick Start Ask the assistant to run the multiplexer state-preparation example with the complex vector [1, 1j, 1, -1j]/2 on 2 qubits and report the status and total error.