X

pyquil.gates.X(qubit)[source]

Produces the X (“NOT”) gate:

X = [[0, 1],
     [1, 0]]

This gate is a single qubit X-gate.

Parameters

qubit (Union[Qubit, QubitPlaceholder, FormalArgument, int]) – The qubit apply the gate to.

Return type

Gate

Returns

A Gate object.