Skip to content

loqs.codepacks.codepack_trivial_counter

A trivial LoQS QEC codepack for testing purposes. This implementation provides a simple counter-like behavior where a "state" value can be incremented. This is purely for demonstration and testing purposes.

Functions

create_ideal_model

create_ideal_model(qubits=None)

Create an ideal (noiseless) model for the trivial code.

Returns:

Type Description
BaseNoiseModel

An empty DictNoiseModel representing no operations needed for this trivial code.


create_qec_code

create_qec_code()

Create a trivial QECCode for testing.

This codepack implements a simple counter with an increment instruction.

Returns:

Type Description
QECCode

A QECCode implementing the trivial counter code.