def METHOD_NAME(self):
    """Tests that the parameter must be of length num_wires."""
    op = qml.QutritBasisState([0], wires=[0, 1])
    with pytest.raises(
        ValueError, match="QutritBasisState parameter and wires must be of equal length."
    ):
        _ = op.state_vector()