loom.cliffordsim.pauli_frame

Copyright 2024 Entropica Labs Pte Ltd

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class loom.cliffordsim.pauli_frame.PauliFrame(x, z, direction='forward', id=None)[source]

Bases: object

A class representing a Pauli Frame.

Initializes the the Pauli Frame.

copy()[source]

Returns a copy of the Pauli Frame.

Return type:

PauliFrame

classmethod from_string(pauli_string, direction='forward', id=None)[source]

Create a PauliFrame from a string representation of a Pauli operator.

Return type:

PauliFrame

sparse_format()[source]

Returns the sparse format of the Pauli Frame.

Return type:

dict