cirq.X  |  Cirq  |  Google Quantum AI (original) (raw)

The Pauli X gate.

cirq.X(
    *qubits, **kwargs
)

Used in the notebooks

Used in the tutorials
Introduction to Cirq Classical control Quantum variational algorithm Representing noise Devices

This is the exponent=1 instance of the cirq.XPowGate.

The unitary matrix of cirq.X is:

\[ \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \]

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-04-15 UTC.