Quantum Information Science Library (bqskit.qis)

The bqskit.qis package contains class definitions for common objects found in quantum information science.

The most widely used will be the UnitaryMatrix object which represents a pure quantum operation in matrix form.

Abstract Base Classes

Unitary

A unitary-valued function.

DifferentiableUnitary

A differentiable unitary-valued function.

LocallyOptimizableUnitary

A locally optimizable unitary-valued function.

StateVectorMap

A map from quantum pure states to quantum pure states.

Core Classes

UnitaryMatrix(input[, radixes, check_arguments])

A concrete representation of a unitary matrix.

UnitaryBuilder(num_qudits[, radixes])

An object for fast unitary accumulation using tensor networks.

StateVector(*args, **kwargs)

A vector representing a pure quantum state.

StateSystem(system)

A system of input and output states.

PauliMatrices(num_qudits)

Pauli group of matrices.

PermutationMatrix(input[, radixes, ...])

A binary, unitary matrix with a single 1 in each row and column.

CouplingGraph(graph[, num_qudits])

A graph representing connections in a qudit topology.

Type Aliases

UnitaryLike

alias of UnitaryMatrix | ndarray | Sequence[Sequence[int | float | complex]]

StateLike

alias of StateVector | ndarray | Sequence[int | float | complex]

StateSystemLike

alias of StateSystem | Dict[Any, Any]

RealVector

alias of Sequence[float] | ndarray

CouplingGraphLike

alias of Iterable[Tuple[int, int]] | CouplingGraph