Expand description

Definitions for commonly used vectors and matrices, such as the Pauli matrices, common Clifford operators, and elementary matrices.

Functions

Returns a unitary matrix representing the CNOT operation.

Returns an elementary matrix; that is, a matrix with a one at a given index and zeros everywhere else.

Returns an elementary vector; that is, a vector with a one at a given index and zeros everywhere else.

Returns a unitary matrix representing the single-qubit Hadamard transformation.

Returns a copy of the single-qubit identity matrix.

Returns an identity matrix that acts on state vectors of registers of qubits with a given size.

Returns a unitary matrix representing the S operation.

Returns a unitary matrix representing the T operation.

Returns a unitary matrix representing the X operation.

Returns a unitary matrix representing the Y operation.

Returns a unitary matrix representing the Z operation.