liveBook · Manning

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.

How 2 Manning books explain it

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

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.