Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Clifford class docs (backport #12177) #12301

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions qiskit/quantum_info/operators/symplectic/clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,23 @@


class Clifford(BaseOperator, AdjointMixin, Operation):
"""An N-qubit unitary operator from the Clifford group.
r"""
An N-qubit unitary operator from the Clifford group.

An N-qubit Clifford operator takes Paulis to Paulis via conjugation
(up to a global phase). More precisely, the Clifford group :math:`\mathcal{C}_N`
is defined as

.. math::

\mathcal{C}_N = \{ U \in U(2^N) | U \mathcal{P}_N U^{\dagger} = \mathcal{P}_N \} / U(1)

where :math:`\mathcal{P}_N` is the Pauli group on :math:`N` qubits
that is generated by single-qubit Pauli operators,
and :math:`U` is a unitary operator in the unitary group
:math:`U(2^N)` representing operations on :math:`N` qubits.
:math:`\mathcal{C}_N` is the quotient group by the subgroup of
scalar unitary matrices :math:`U(1)`.

**Representation**

Expand Down Expand Up @@ -92,7 +108,7 @@ class Clifford(BaseOperator, AdjointMixin, Operation):
:class:`~qiskit.circuit.library.SGate`, :class:`~qiskit.circuit.library.SdgGate`,
:class:`~qiskit.circuit.library.SXGate`, :class:`~qiskit.circuit.library.SXdgGate`,
:class:`~qiskit.circuit.library.CXGate`, :class:`~qiskit.circuit.library.CZGate`,
:class:`~qiskit.circuit.library.CYGate`, :class:`~qiskit.circuit.library.DXGate`,
:class:`~qiskit.circuit.library.CYGate`, :class:`~qiskit.circuit.library.DCXGate`,
:class:`~qiskit.circuit.library.SwapGate`, :class:`~qiskit.circuit.library.iSwapGate`,
:class:`~qiskit.circuit.library.ECRGate`, :class:`~qiskit.circuit.library.LinearFunction`,
:class:`~qiskit.circuit.library.PermutationGate`.
Expand Down
Loading