Rotational gate
A rotational gate is a single-qubit quantum gate that rotates a qubit’s state by a specified angle about the Y axis of the Bloch sphere.
Quantum Programming in Depth
An Ry gate is a single-qubit rotation gate that rotates a qubit state around the Y axis of the Bloch sphere.
- How it is used
- Prepares a single-qubit state from specified coefficients by converting amplitudes into a Y-axis rotation.
- How deep it goes
- Derives the rotation angle and demonstrates Q# execution, but does not develop the gate's matrix representation.
- Examples
- Uses amplitudes 0.6 and 0.8, computes 2·ArcTan2(0.8, 0.6), applies RY, and resets the qubit.
- What you can do after
- Build it from scratch in Q# to prepare and safely release a single-qubit state.
Read how Quantum Programming in Depth explains rotational gate →
Building Quantum Software with Python
A Y rotation gate is a single-qubit quantum gate that rotates a qubit's state by an angle about the Y axis of the Bloch sphere.
- How it is used
- Uses single-qubit rotations to control real amplitudes and encode binary probabilities or scaled numeric values.
- How deep it goes
- Defines the gate through a matrix, explains angle effects, demonstrates composition, and stops short of deriving the matrix entries.
- Examples
- Demonstrates π/3 rotation, p = 0.7 Bernoulli encoding, and x = 273.5 encoding in amplitude magnitude.
- What you can do after
- Build it from scratch by calculating an angle, applying RY to an initialized qubit, and reading the resulting state probabilities.
Read how Building Quantum Software with Python explains rotational gate →
Related concepts
- measurement basisused by · A measurement basis is a pair of orthogonal quantum states that defines the possible outcomes of a quantum measurement.
- binomial distributionused by · A binomial distribution is the probability distribution of the number of successes in a fixed number of independent trials, each with the same probability of success.
- quantum gatekind of · A quantum gate is an operation that transforms the state of one or more qubits, typically represented by a unitary transformation.
- rz gateincludes · An RZ gate is a single-qubit quantum gate that applies a rotation about the Z axis of the Bloch sphere.
- state preparationused by · State preparation is the process of transforming an initial quantum state into a specified target quantum state.
- rotationconfigures · A rotation is a geometric transformation that turns points or objects about a fixed center, origin, or axis through an angle while preserving distances and angles.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

