loom.eka.operations.base_operation
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.eka.operations.base_operation.BaseOperation(*args, **kwargs)[source]
Bases:
OperationBase class for all operations in the EKA.
NOTE: Base Operations are Operations that can be generalized to any setup of the EKA. They are not specific to a particular code or setup. This could range from single qubit gates on specific qubits to measuring specific stabilizers of the code.
- class loom.eka.operations.base_operation.MeasureObservable(*args, **kwargs)[source]
Bases:
BaseOperationMeasure an observable.
- Parameters:
observable (PauliOperator) – Observable to measure.
-
observable:
PauliOperator
- class loom.eka.operations.base_operation.MeasureStabilizerSyndrome(*args, **kwargs)[source]
Bases:
BaseOperationMeasure the syndrome of a single stabilizer.
- Parameters:
stabilizer (Stabilizer) – Stabilizer to measure.
-
stabilizer:
Stabilizer