"""
POVM effect representation classes for the `chp` evolution type.
"""
#***************************************************************************************************
# Copyright 2015, 2019, 2025 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights
# in this software.
# 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
# http://www.apache.org/licenses/LICENSE-2.0 or in the LICENSE file in the root pyGSTi directory.
#***************************************************************************************************

from .. import basereps as _basereps
from pygsti.baseobjs.statespace import StateSpace as _StateSpace


class EffectRep(_basereps.EffectRep):
    def __init__(self, zvals, state_space):
        self.zvals = zvals
        self.state_space = _StateSpace.cast(state_space)
        assert(self.state_space.num_qubits == len(self.zvals))

    @property
    def nqubits(self):
        return self.state_space.num_qubits


class EffectRepComputational(EffectRep):

    def __init__(self, zvals, basis, state_space):
        self.basis = basis
        super(EffectRepComputational, self).__init__(zvals, state_space)
