identity_code¶
- guppyft.code_def.identity_code(k: int) StabilizerCode[source]¶
- Return a stabilizer code that encodes k logical qubits into k physical qubits.
This is the trivial code with distance 1.
- Parameters:
k – The number of logical qubits to encode.
- Returns:
A StabilizerCode instance representing the identity code.