From 1918b0c5f38170d17e9a59280890930c93e2b7d6 Mon Sep 17 00:00:00 2001 From: Victory Omole Date: Wed, 29 Jan 2025 14:14:01 -0600 Subject: [PATCH] Fix return type of `get_encoding_tableau` (#209) * Update circuits.py * Update circuits.py --- qldpc/circuits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qldpc/circuits.py b/qldpc/circuits.py index 3dadefff..b6a42cb3 100644 --- a/qldpc/circuits.py +++ b/qldpc/circuits.py @@ -41,7 +41,7 @@ def qubit_func(*args: object, **kwargs: object) -> stim.Circuit: @restrict_to_qubits -def get_encoding_tableau(code: codes.QuditCode) -> stim.Circuit: +def get_encoding_tableau(code: codes.QuditCode) -> stim.Tableau: """Tableau to encode physical states at its input into logical states of the given code. For all j in {0, 1, ..., code.dimension - 1}, this tableau maps weight-one X_j and Z_j operators @@ -85,7 +85,7 @@ def get_encoding_tableau(code: codes.QuditCode) -> stim.Circuit: @restrict_to_qubits -def get_encoding_circuit(code: codes.QuditCode) -> stim.Tableau: +def get_encoding_circuit(code: codes.QuditCode) -> stim.Circuit: """Circuit to encode physical states at its input into logical states of the given code. For all j in {0, 1, ..., code.dimension - 1}, this circuit maps weight-one X_j and Z_j operators