Focus on gates —
not equations.
@masabando/quantum-gates is a JavaScript library designed to make single-qubit quantum gates easier to understand, compose, and evaluate .
Quantum gates are fundamentally rotations on the Bloch sphere.
This library lets you describe gates in those terms directly, without translating ideas into matrices by hand .
Composite gates are built by sequencing simpler gates.
Instead of re-deriving new operators, you compose existing ones and treat the result as a first-class gate.
Gates are only useful if you can evaluate them.
The library provides tools to compute and visualize fidelity, making robustness and error sensitivity explicit .
Quantum states and gate operations can be visualized in 3D using the Bloch sphere. This makes abstract behavior tangible and easier to explore.