Circuit Library¶
Circuit Library (qiskit.circuit.library
)¶
Standard Gates¶
|
Barrier instruction. |
|
The 3-qubit controlled X gate. |
|
The 4-qubit controlled X gate. |
|
CCX gate, also known as Toffoli gate. |
|
Double-CNOT gate. |
|
Controlled-Hadamard gate. |
|
Controlled-RX gate. |
|
Controlled-RY gate. |
|
Controlled-RZ gate. |
|
Controlled-X gate. |
|
Controlled-U1 gate. |
|
Controlled-U3 gate (3-parameter two-qubit gate). |
|
Controlled-X gate. |
|
Controlled-Y gate. |
|
Controlled-Z gate. |
|
Single-qubit Hadamard gate. |
|
Identity gate. |
|
Quantum measurement in the computational basis. |
|
Global Mølmer–Sørensen gate. |
|
The simplified Toffoli gate, also referred to as Margolus gate. |
|
The simplified 3-controlled Toffoli gate. |
|
Qubit reset. |
|
Single-qubit rotation about the X axis. |
|
A parameteric 2-qubit \(X \otimes X\) interaction (rotation about XX). |
|
Single-qubit rotation about the Y axis. |
|
A parameteric 2-qubit \(Y \otimes Y\) interaction (rotation about YY). |
|
Single-qubit rotation about the Z axis. |
|
A parameteric 2-qubit \(Z \otimes Z\) interaction (rotation about ZZ). |
|
A parameteric 2-qubit \(Z \otimes X\) interaction (rotation about ZX). |
|
Single qubit S gate (Z**0.5). |
|
Single qubit S-adjoint gate (~Z**0.5). |
|
The SWAP gate. |
iSWAP gate. |
|
|
Single qubit T gate (Z**0.25). |
|
Single qubit T-adjoint gate (~Z**0.25). |
|
Single-qubit rotation about the Z axis. |
|
Single-qubit rotation about the X+Z axis. |
|
Generic single-qubit rotation gate with 3 Euler angles. |
|
The single-qubit Pauli-X gate (\(\sigma_x\)). |
|
The single-qubit Pauli-Y gate (\(\sigma_y\)). |
|
The single-qubit Pauli-Z gate (\(\sigma_z\)). |
Generalized Gates¶
|
Diagonal circuit. |
|
The multi-controlled multi-target gate, for an arbitrary singly controlled target gate. |
|
The MCMT implementation using the CCX V-chain. |
|
An n_qubit circuit that permutes qubits. |
|
Global Mølmer–Sørensen gate. |
Boolean Logic Circuits¶
|
A circuit implementing the logical AND operation on a number of qubits. |
|
A circuit implementing the logical OR operation on a number of qubits. |
|
An n_qubit circuit for bitwise xor-ing the input with some integer |
|
An n_qubit circuit that computes the inner product of two registers. |
Basis Change Circuits¶
|
Quantum Fourier Transform Circuit. |
Arithmetic Circuits¶
Functional Pauli Rotations¶
|
Base class for functional Pauli rotations. |
|
Linearly-controlled X, Y or Z rotation. |
|
A circuit implementing polynomial Pauli rotations. |
Piecewise-linearly-controlled Pauli rotations. |
Adders¶
|
A circuit to compute the weighted sum of qubit registers. |
Comparators¶
|
Integer Comparator. |
Particular Quantum Circuits¶
|
Fourier checking circuit. |
|
Circuit to prepare a graph state. |
|
Circuit to solve the hidden linear function problem. |
|
Instantaneous quantum polynomial (IQP) circuit. |
|
A quantum volume model circuit. |
N-local circuits¶
|
The n-local circuit class. |
|
The two-local circuit. |
|
The RealAmplitudes 2-local circuit. |
|
The hardware efficient SU(2) 2-local circuit. |
|
The heurisitic excitation-preserving wave function ansatz. |
Data encoding circuits¶
|
The Pauli Expansion circuit. |
|
The first order Pauli Z-evolution circuit. |
|
Second-order Pauli-Z evolution circuit. |