code_defΒΆ

Abstractions for code definitions.

Classes

StabilizerCode(num_physical_qubits, ...)

Functions

identity_code(k)

Return a stabilizer code that encodes k logical qubits into k physical qubits.

Exceptions

CodeDefinitionError

Raised when the definition of a stabilizer code is invalid.