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(input[, radixes, check_arguments])

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 | complex128 | complex64 | int64 | int32 | float64 | float32 | Sequence[Sequence[int | float | complex]]

StateLike

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

StateSystemLike

alias of StateSystem | Dict[Any, Any]

RealVector

alias of Sequence[float] | float64 | float32

CouplingGraphLike

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