File tree Expand file tree Collapse file tree 3 files changed +2
-15
lines changed
python/quantum-pecos/src/pecos Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 1717# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1818# specific language governing permissions and limitations under the License.
1919
20- """Binary array implementation for the PECOS classical virtual machine.
21-
22- This module provides the BinArray class for efficient binary array operations
23- within the classical virtual machine (CVM) framework. It supports various
24- binary representations and operations needed for classical computations
25- in quantum error correction simulations.
26- """
27-
2820from __future__ import annotations
2921
3022from typing import TYPE_CHECKING
Original file line number Diff line number Diff line change 1414# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1515# specific language governing permissions and limitations under the License.
1616
17- """Python PMIR (Pecos Medium-level Intermediate Representation).
18-
19- This package provides Python bindings and utilities for PMIR.
20- """
21-
2217from pecos .reps .pypmir .pypmir import PyPMIR , signed_data_types , unsigned_data_types
Original file line number Diff line number Diff line change @@ -181,10 +181,10 @@ def generate_op(self, op):
181181 op_list = op_str .split ("\n " )
182182 op_new = []
183183 for o in op_list :
184- o = o .strip () # noqa: PLW2901 - clean whitespace
184+ o = o .strip ()
185185 if o != "" and not o .startswith ("//" ):
186186 for qi in o .split (";" ):
187- qi = qi .strip () # noqa: PLW2901 - clean whitespace
187+ qi = qi .strip ()
188188 if qi != "" and not qi .startswith ("//" ):
189189 op_new .append (f"if({ cond } ) { qi } ;" )
190190 else :
You can’t perform that action at this time.
0 commit comments