pqca.exceptions module

Exceptions for the PQCA module.

exception pqca.exceptions.BackendError

Bases: pqca.exceptions.PQCAException

Pass backend errors through to user.

exception pqca.exceptions.CircuitWrongShapeForCell(qubits, size_cell)

Bases: pqca.exceptions.PQCAException

The circuit must be applied to qubits 0…(n-1).

exception pqca.exceptions.EmptyCellException

Bases: pqca.exceptions.PQCAException

Each cell must not be empty.

exception pqca.exceptions.IrregularCellSize(cells)

Bases: pqca.exceptions.PQCAException

Each cell must be the same size.

exception pqca.exceptions.IrregularCoordinateDimensions(coordinate_1, coordinate_2)

Bases: pqca.exceptions.PQCAException

Two coordinates must be of the same dimension to be compared.

exception pqca.exceptions.NoCellsException

Bases: pqca.exceptions.PQCAException

There must be at least one cell.

exception pqca.exceptions.PQCAException

Bases: Exception

Base exception class for the pqca module.

exception pqca.exceptions.PartitionUnevenlyCoversQubits(cells)

Bases: pqca.exceptions.PQCAException

The partition must contain each qubit exactly once.