diff --git a/symmer/projection/contextual_subspace.py b/symmer/projection/contextual_subspace.py index 51f9733f..2ae82900 100644 --- a/symmer/projection/contextual_subspace.py +++ b/symmer/projection/contextual_subspace.py @@ -26,6 +26,8 @@ class ContextualSubspace(S3Projection): 5. drop the corresponding qubits from the Hamiltonian whilst 6. fixing the +/-1 eigenvalues """ + name = 'contextual_subspace' # for reference in QubitSubspaceManager + def __init__(self, operator: PauliwordOp, noncontextual_strategy: str = 'diag', diff --git a/symmer/projection/qubit_tapering.py b/symmer/projection/qubit_tapering.py index f6e68da8..45e645fa 100644 --- a/symmer/projection/qubit_tapering.py +++ b/symmer/projection/qubit_tapering.py @@ -19,6 +19,8 @@ class QubitTapering(S3Projection): Steps 1-2 are handled in this class whereas we defer to the parent S3Projection for 3-5. """ + name = 'qubit_tapering' # for reference in QubitSubspaceManager + def __init__(self, operator: PauliwordOp, target_sqp: str = 'Z'